diff --git a/src/controllers/auth.js b/src/controllers/auth.js index 9d64e04..5616701 100644 --- a/src/controllers/auth.js +++ b/src/controllers/auth.js @@ -5,6 +5,17 @@ import config from '../../config' const router = new Router({ prefix: '/auth' }) +/** + * @apiDefine TokenError + * @apiError Unauthorized Invalid JWT token + * + * @apiErrorExample {json} Error-Response: + * HTTP/1.1 401 Unauthorized + * { + * "status": 401, + * "error": "Unauthorized" + * } + */ /** * @api {post} /auth Authenticate user