File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ import config from '../../config';
77export default ( app ) => {
88
99 // Paths 404 from url
10- app . get ( config . path . disabled , ( req , res ) => {
11- res . status ( 404 ) . sendFile ( `${ config . base } /views/404.html` ) ;
12- } ) ;
10+ app . get ( config . path . disabled , ( req , res ) => res . status ( 404 ) . sendFile ( `${ config . base } /views/404.html` ) ) ;
1311
1412 // Point static path to client by default
1513 let client = config . client ;
@@ -29,16 +27,10 @@ export default (app) => {
2927 app . use ( favicon ( path . join ( client , 'favicon.ico' ) ) ) ;
3028
3129 // Folder client
32- app . get ( '/*' , ( req , res ) => {
33- res . sendFile ( `${ client } /${ file } .html` ) ;
34- } ) ;
30+ app . get ( '/*' , ( req , res ) => res . sendFile ( `${ client } /${ file } .html` ) ) ;
3531
36-
37- // Examples
38-
32+ // Other examples
3933 // app.use('/bower_components', express.static(`${config.root}/bower_components`));
40- // app.get('/:url(admin)/*', (req, res) => {
41- // res.sendFile(`${config.client2}/index.html`);
42- // });
34+ // app.get('/:url(admin)/*', (req, res) => res.sendFile(`${config.client2}/index.html`));
4335
4436}
You can’t perform that action at this time.
0 commit comments