File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,17 @@ import errors from './components/errors';
8
8
import path from 'path' ;
9
9
10
10
export default function ( app ) {
11
- // Insert routes below<% if (filters.auth) { %>
12
- app . use ( '/api/users' , require ( './api/user' ) ) ;
11
+ // Insert routes below<% if(filters.auth) { %>
12
+ app . use ( '/api/users' , require ( './api/user' ) ) ;
13
+ app . use ( '/auth' , require ( './auth' ) . default ) ; < % } % >
13
14
14
- app . use ( '/auth' , require ( './auth' ) . default ) ;
15
- < % } % >
16
- // All undefined asset or api routes should return a 404
17
- app . route ( '/:url(api|auth|components|app|bower_components|assets)/*' )
18
- . get ( errors [ 404 ] ) ;
15
+ // All undefined asset or api routes should return a 404
16
+ app . route ( '/:url(api|auth|components|app|bower_components|assets)/*' )
17
+ . get ( errors [ 404 ] ) ;
19
18
20
- // All other routes should redirect to the index.html
21
- app . route ( '/*' )
22
- . get ( ( req , res ) => {
23
- res . sendFile ( path . resolve ( app . get ( 'appPath' ) + '/index.html' ) ) ;
24
- } ) ;
19
+ // All other routes should redirect to the index.html
20
+ app . route ( '/*' )
21
+ . get ( ( req , res ) => {
22
+ res . sendFile ( path . resolve ( app . get ( 'appPath' ) + '/index.html' ) ) ;
23
+ } ) ;
25
24
}
You can’t perform that action at this time.
0 commit comments