Define auth error

This commit is contained in:
Adrian Obelmejias
2016-03-04 23:17:12 -05:00
parent 87ea94b739
commit 1eae3a4c0e
+11
View File
@@ -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