fix hard links for new client (#8986)

This commit is contained in:
Matteo Pagliazzi
2017-08-24 18:19:31 +02:00
committed by GitHub
parent 5c89451985
commit 82c912237b
4 changed files with 36 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import locals from '../../middlewares/locals';
import { serveClient } from '../../libs/client';
// import _ from 'lodash';
// import md from 'habitica-markdown';
// import nconf from 'nconf';
@@ -92,7 +93,7 @@ api.getNewClient = {
url: '/',
noLanguage: true,
async handler (req, res) {
return res.sendFile('./dist-client/index.html', {root: `${__dirname}/../../../../`});
return serveClient(res);
},
};
// }