app: remove git-rev-sync and update dependencies

This commit is contained in:
DIYgod
2018-05-15 02:03:33 +08:00
parent 36ad5f2415
commit df0d2d01af
3 changed files with 20 additions and 72 deletions

View File

@@ -4,15 +4,12 @@ const art = require('art-template');
const path = require('path');
const config = require('./config');
const logger = require('./utils/logger');
const git = require('git-rev-sync');
router.get('/', async (ctx) => {
ctx.set({
'Content-Type': 'text/html; charset=UTF-8',
});
ctx.body = art(path.resolve(__dirname, './views/welcome.art'), {
hash: git.short(),
});
ctx.body = art(path.resolve(__dirname, './views/welcome.art'), {});
});
// bilibili