experimenting with jsdoc tags
This commit is contained in:
@@ -24,8 +24,8 @@ api.use(express.json())
|
|||||||
/**
|
/**
|
||||||
* Get current authenticated user
|
* Get current authenticated user
|
||||||
* @category User
|
* @category User
|
||||||
* @path /api/user
|
* @name /api/user
|
||||||
* @method GET
|
* @type GET
|
||||||
*/
|
*/
|
||||||
api.get('/user', isAuth, (req, res) => res.json(req.user))
|
api.get('/user', isAuth, (req, res) => res.json(req.user))
|
||||||
|
|
||||||
@@ -53,9 +53,9 @@ api.put('/place', isAdmin, eventController.updatePlace)
|
|||||||
/**
|
/**
|
||||||
* Add a new event
|
* Add a new event
|
||||||
* @category Event
|
* @category Event
|
||||||
* @path /event
|
* @name /event
|
||||||
* @method POST
|
* @type POST
|
||||||
* @note `Content-Type` has to be `multipart/form-data` 'cause support image upload
|
* @info `Content-Type` has to be `multipart/form-data` 'cause support image upload
|
||||||
* @param {string} title - event's title
|
* @param {string} title - event's title
|
||||||
* @param {string} description - event's description (html accepted and sanitized)
|
* @param {string} description - event's description (html accepted and sanitized)
|
||||||
* @param {string} place_name - the name of the place
|
* @param {string} place_name - the name of the place
|
||||||
|
|||||||
Reference in New Issue
Block a user