Skip to content

Commit

Permalink
fix get story by id (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Pedro da Silva authored Mar 29, 2023
1 parent 9572eb1 commit a4622ae
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions packages/api/src/routes/v2/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,30 @@ export default (app: Router): void => {
storyController.count
);

/**
* @swagger
*
* /stories/{id}:
* get:
* tags:
* - "stories"
* summary: Get a story by ID
* parameters:
* - in: path
* name: id
* schema:
* type: integer
* required: true
* description: Story id
* responses:
* "200":
* description: OK
* security:
* - api_auth:
* - "write:modify":
*/
route.get('/:id', optionalAuthentication, storyController.getById);

/**
* @swagger
*
Expand Down Expand Up @@ -195,30 +219,6 @@ export default (app: Router): void => {
storyController.list
);

/**
* @swagger
*
* /stories/{id}:
* get:
* tags:
* - "stories"
* summary: Get a story by ID
* parameters:
* - in: path
* name: id
* schema:
* type: integer
* required: true
* description: Story id
* responses:
* "200":
* description: OK
* security:
* - api_auth:
* - "write:modify":
*/
route.get('/:id', optionalAuthentication, storyController.getById);

/**
* @swagger
*
Expand Down

0 comments on commit a4622ae

Please sign in to comment.