mirror of
https://github.com/linuxserver/kclient.git
synced 2026-03-23 00:00:56 +08:00
wip: added requests logs
This commit is contained in:
parent
7bc0044738
commit
9566e3232f
14
index.js
14
index.js
@ -43,20 +43,12 @@ app.engine('json', ejs.renderFile);
|
||||
app.use(morgan('combined'));
|
||||
|
||||
//// Routes ////
|
||||
baseRouter.get('/favicon.ico', function (req, res) {
|
||||
res.sendFile(path_node.join(public_dir, 'favicon.ico'));
|
||||
});
|
||||
baseRouter.get('/', function (req, res) {
|
||||
res.render(path_node.join(public_dir, 'index.html'), {title: TITLE, path: PATH, path_prefix: SUBFOLDER});
|
||||
});
|
||||
baseRouter.use('/public/css', express.static(path_node.join(public_dir, 'css')));
|
||||
baseRouter.use('/public/js', express.static(path_node.join(public_dir, 'js')));
|
||||
baseRouter.get('/public/icon.png', function (req, res) {
|
||||
res.sendFile(path_node.join(public_dir, 'icon.png'));
|
||||
});
|
||||
baseRouter.get('/favicon.ico', function (req, res) {
|
||||
var path = path_node.join(public_dir, 'favicon.ico');
|
||||
console.log("path: " + path);
|
||||
|
||||
res.sendFile(path);
|
||||
});
|
||||
baseRouter.get('/manifest.json', function (req, res) {
|
||||
res.render(path_node.join(public_dir, 'manifest.json'), {title: TITLE, path_prefix: SUBFOLDER});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user