nbot

A clone of the eBot by @deStrO fully based on node.js with build in Web Page - WIP
git clone git://archive.git.mtrnord.blog/MTRNord/nbot.git
Log | Files | Refs | README | LICENSE

commit 3e9218b6a456e4131c6ddc936703a911bb0d623f
parent 278d39f473fbf8eb81a831fe8d9a5acd4f14638c
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue, 29 Mar 2016 23:54:03 +0200

Fix Webserver for PluginManager

Diffstat:
Mweb/server.js | 7+++++--
Mweb/theme/index.html | 2+-
Mweb/theme/pluginManager.html | 2+-
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/web/server.js b/web/server.js @@ -25,8 +25,11 @@ var server = module.exports = {}; app.get('/', function(req, res){ res.sendFile(__dirname + '/theme/index.html'); }); - app.get('/theme.css', function(req, res){ - res.sendFile(__dirname + '/theme/theme.css'); + app.get('/index', function(req, res){ + res.sendFile(__dirname + '/theme/index.html'); + }); + app.get('/pluginManager', function(req, res){ + res.sendFile(__dirname + '/theme/pluginManager.html'); }); app.use('/css', express.static(__dirname + '/theme/css')); app.use('/js', express.static(__dirname + '/theme/js')); diff --git a/web/theme/index.html b/web/theme/index.html @@ -64,7 +64,7 @@ <a href="#">Dashboard</a> </li> <li> - <a href="pluginManager.html">PluginManager</a> + <a href="pluginManager">PluginManager</a> </li> <li> <a href="#">Overview</a> diff --git a/web/theme/pluginManager.html b/web/theme/pluginManager.html @@ -61,7 +61,7 @@ </a> </li> <li> - <a href="index.html">Dashboard</a> + <a href="index">Dashboard</a> </li> <li> <a href="#">PluginManager</a>