mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-10 15:48:27 -05:00
Add missing semicolon
This commit is contained in:
parent
f64fb3526b
commit
695696965c
@ -7,7 +7,7 @@ var register = require('./register.js');
|
||||
var login = require('./login.js');
|
||||
var panel = require('./panel.js');
|
||||
var keys = require('./keys.js');
|
||||
var invites = require('./invites.js')
|
||||
var invites = require('./invites.js');
|
||||
|
||||
var Key = require('../models/Key.js');
|
||||
|
||||
@ -55,7 +55,7 @@ module.exports = function (app) {
|
||||
app.use('/panel', requireLogin, panel);
|
||||
app.use('/panel*', requireLogin, panel);
|
||||
|
||||
app.use(function (err, req, res, next) {
|
||||
app.use(function (err, req, res) {
|
||||
if (err.name === 'UnauthorizedError') {
|
||||
res.status(401);
|
||||
res.json({"message": err.name + ": " + err.message});
|
||||
|
Loading…
Reference in New Issue
Block a user