Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(consultation): register consultation routes to root API router
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 13, 2022
1 parent c44c9d3 commit bd8db74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/api/consultation/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Router from "!/bases/router"
import GetList from "!%/api/consultation/list.get"
import PostCreate from "!%/api/consultation/create.post"
import PatchUpdate from "!%/api/consultation/update(id).patch"
import PatchRestore from "!%/api/consultation/restore.patch"
import DeleteArchive from "!%/api/consultation/archive.delete"
// import PatchRestore from "!%/api/consultation/restore.patch"
// import DeleteArchive from "!%/api/consultation/archive.delete"

export default class extends Router {
constructor() {
Expand All @@ -13,8 +13,8 @@ export default class extends Router {
new GetList(),
new PostCreate(),
new PatchUpdate(),
new PatchRestore(),
new DeleteArchive()
// new PatchRestore(),
// new DeleteArchive()
])
}
}
2 changes: 2 additions & 0 deletions routes/api/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import SignatureRouter from "!%/api/signature/router"
import DepartmentRouter from "!%/api/department/router"
import AuditTrailRouter from "!%/api/audit_trail/router"
import ChatMessageRouter from "!%/api/chat_message/router"
import ConsultationRouter from "!%/api/consultation/router"
import ProfilePictureRouter from "!%/api/profile_picture/router"
import EmployeeScheduleRouter from "!%/api/employee_schedule/router"
import ChatMessageActivityRouter from "!%/api/chat_message_activity/router"
Expand All @@ -22,6 +23,7 @@ export default class extends Router {
new DepartmentRouter(),
new UserBindedRouter(),
new ChatMessageRouter(),
new ConsultationRouter(),
new ProfilePictureRouter(),
new EmployeeScheduleRouter(),
new ChatMessageActivityRouter()
Expand Down

0 comments on commit bd8db74

Please sign in to comment.