Skip to content

Commit ee869ca

Browse files
committed
updated urls
1 parent 4f704d8 commit ee869ca

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/lib/express/client.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import config from '../../config';
77
export 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
}

0 commit comments

Comments
 (0)