File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
- secrets.js
3
2
public /bundle.js
4
3
public /bundle.js.map
5
4
secrets.js
Original file line number Diff line number Diff line change 1
1
const router = require ( 'express' ) . Router ( )
2
2
module . exports = router
3
3
4
- router . use ( '/users' , require ( './users' ) )
4
+ router . use ( '/users' , require ( './users' ) ) // matches all requests to /api/users/
5
5
6
6
router . use ( ( req , res , next ) => {
7
7
const error = new Error ( 'Not Found' )
Original file line number Diff line number Diff line change 1
1
const Sequelize = require ( 'sequelize' )
2
2
const db = new Sequelize (
3
3
process . env . DATABASE_URL || 'postgres://localhost:5432/hacktive' , {
4
- logging : false
4
+ logging : false // unless you like the logs
5
+ // ...and there are many other options you may want to play with
5
6
}
6
7
)
7
8
module . exports = db
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ module.exports = {
25
25
'style-loader' ,
26
26
'css-loader' ,
27
27
]
28
+ } ,
29
+ {
30
+ test : / \. s v g $ | \. t t f ? | \. w o f f $ | \. w o f f 2 | \. e o f | \. e o t / ,
31
+ loader : 'file-loader'
28
32
}
29
33
]
30
34
} ,
You can’t perform that action at this time.
0 commit comments