mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 09:15:09 +03:00
docs: Add full Swagger JSDoc coverage
This commit is contained in:
@@ -31,6 +31,30 @@
|
||||
* ```
|
||||
*/
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* components:
|
||||
* responses:
|
||||
* NotFound:
|
||||
* description: Resource not found
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* required:
|
||||
* - code
|
||||
* - message
|
||||
* properties:
|
||||
* code:
|
||||
* type: string
|
||||
* description: Error code
|
||||
* example: E_NOT_FOUND
|
||||
* message:
|
||||
* type: string
|
||||
* description: Error message
|
||||
* example: Resource not found
|
||||
*/
|
||||
|
||||
module.exports = function notFound(message) {
|
||||
const { res } = this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user