Skip to content

Commit

Permalink
feat(notification): update notification route and add schemas swagger…
Browse files Browse the repository at this point in the history
… for notifications
  • Loading branch information
elskow committed Dec 10, 2024
1 parent 6b08023 commit 0e032d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ v1Router.use("/tutors", tutorRouter);
v1Router.use("/orders", orderRouter);
v1Router.use("/chat", chatRouter);
v1Router.use("/reviews", reviewRouter);
v1Router.get("/notification", notificationRouter);
v1Router.use("/notification", notificationRouter);

export default v1Router;
11 changes: 11 additions & 0 deletions src/swagger/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,16 @@ export const components = {
$hourlyRate: 70000,
typeLesson: "online/offline/both",
},
GetNotificationsSchema: {
query: {
limit: "20",
before: "2024-01-01T00:00:00Z",
},
},
MarkNotificationReadSchema: {
params: {
notificationId: "uuid",
},
},
},
};
4 changes: 4 additions & 0 deletions src/swagger/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ export const tags = [
name: "reviews",
description: "Review related endpoints",
},
{
name: "notifications",
description: "Notification related endpoints",
},
];

0 comments on commit 0e032d1

Please sign in to comment.