Skip to content

Commit

Permalink
OV-59: * rename video api path
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanchousina committed Aug 28, 2024
1 parent 7247bfb commit e88de81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/src/bundles/videos/video.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class VideoController extends BaseController {
});

this.addRoute({
path: VideosApiPath.VIDEO,
path: VideosApiPath.ID,
method: 'GET',
handler: (options) =>
this.find(
Expand All @@ -78,7 +78,7 @@ class VideoController extends BaseController {
});

this.addRoute({
path: VideosApiPath.VIDEO,
path: VideosApiPath.ID,
method: 'PATCH',
validation: {
body: updateVideoValidationSchema,
Expand All @@ -93,7 +93,7 @@ class VideoController extends BaseController {
});

this.addRoute({
path: VideosApiPath.VIDEO,
path: VideosApiPath.ID,
method: 'DELETE',
handler: (options) =>
this.delete(
Expand Down
2 changes: 1 addition & 1 deletion shared/src/bundles/videos/enums/videos-api-path.enum.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const VideosApiPath = {
ROOT: '/',
VIDEO: '/:id',
ID: '/:id',
} as const;

export { VideosApiPath };

0 comments on commit e88de81

Please sign in to comment.