Note routes

develop
sundowndev 2018-11-16 18:20:25 +01:00
parent 0025e28334
commit 576ad7cfba
1 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ const remove = require('./delete');
const CreateValidation = require.main.require('./app/validation/note/create');
const UpdateValidation = require.main.require('./app/validation/note/update');
const Authentication = require.main.require('./app/validation/auth');
const Authentication = require.main.require('./app/validation/auth/auth');
/**
* @api {get} /note/:id Get note
@ -16,8 +16,8 @@ const Authentication = require.main.require('./app/validation/auth');
*
* @apiParam {String} id Note unique ID.
*
* @apiSuccess {string} title Title of the note.
* @apiSuccess {string} text Text of the note.
* @apiSuccess {String} title Title of the note.
* @apiSuccess {String} text Text of the note.
*/
note.get('/:id', Authentication, single);
@ -30,8 +30,8 @@ note.get('/:id', Authentication, single);
* "Authorization": "<Access_Token>"
* }
*
* @apiSuccess {string} title Title of the note.
* @apiSuccess {string} text Text of the note.
* @apiSuccess {String} title Title of the note.
* @apiSuccess {String} text Text of the note.
*/
note.post('/', Authentication, CreateValidation, create);
@ -42,8 +42,8 @@ note.post('/', Authentication, CreateValidation, create);
*
* @apiParam {String} id Note unique ID.
*
* @apiSuccess {string} title Title of the note.
* @apiSuccess {string} text Text of the note.
* @apiSuccess {String} title Title of the note.
* @apiSuccess {String} text Text of the note.
*/
note.put('/:id', Authentication, UpdateValidation, update);