Fixing two smalll bugs
This commit is contained in:
		| @ -6,10 +6,10 @@ if (config.logging) { | ||||
|    NLS(Logging, config.logging.server, config.logging.appid, config.logging.token); | ||||
| } | ||||
|  | ||||
| if (!config.database) { | ||||
|    Logging.error("No database config set. Terminating.") | ||||
|    process.exit(); | ||||
| } | ||||
| // if (!config.database) { | ||||
| //    Logging.error("No database config set. Terminating.") | ||||
| //    process.exit(); | ||||
| // } | ||||
|  | ||||
| if (!config.web) { | ||||
|    Logging.error("No web config set. Terminating.") | ||||
|  | ||||
| @ -19,7 +19,7 @@ Handlebars.registerHelper("appname", () => config.core.name); | ||||
| const cacheTime = moment.duration(1, "month").asSeconds(); | ||||
|  | ||||
| const ViewRouter: IRouter<void> = Router(); | ||||
| ViewRouter.get("/", promiseMiddleware(UserMiddleware), (req, res) => { | ||||
| ViewRouter.get("/", UserMiddleware, (req, res) => { | ||||
|    res.send("This is the main page") | ||||
| }) | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Fabian Stamm
					Fabian Stamm