mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-15 10:15:23 +08:00
reset to 5ee12a1
This commit is contained in:
@@ -2,15 +2,12 @@ const Router = require('koa-router');
|
||||
const router = new Router();
|
||||
const art = require('art-template');
|
||||
const path = require('path');
|
||||
const gitHash = 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: gitHash.short()
|
||||
});
|
||||
ctx.body = art(path.resolve(__dirname, './views/welcome.art'), {});
|
||||
});
|
||||
|
||||
// // bilibili
|
||||
|
||||
Reference in New Issue
Block a user