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

Commit

Permalink
intrn(route): initialize tag route enhancers
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Magtoto committed Nov 14, 2022
1 parent 3d510a6 commit fb5109f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/enhancer/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import ControllerLike from "!/bases/controller-like"

import GetHome from "!%/enhancer/home.get"
import GetIndex from "!%/enhancer/index.get"
import { controllers as tagControllers } from "!%/enhancer/tag/router"
import { controllers as userControllers } from "!%/enhancer/user/router"
import { controllers as roleControllers } from "!%/enhancer/role/router"
import { controllers as postControllers } from "!%/enhancer/post/router"
Expand All @@ -13,6 +14,7 @@ import { controllers as userSettingsControllers } from "!%/enhancer/settings/rou
import { controllers as consultationControllers } from "!%/enhancer/consultation/router"

export const controllers: (new() => ControllerLike)[] = [
...tagControllers,
...userControllers,
...roleControllers,
...postControllers,
Expand Down
11 changes: 11 additions & 0 deletions routes/enhancer/tag/router.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import GetList from "!%/enhancer/tag/list.get"
import GetIndex from "!%/enhancer/tag/index.get"
import GetRead from "!%/enhancer/tag/read(id).get"
import GetCreate from "!%/enhancer/tag/create.get"

export const controllers = [
GetIndex,
GetList,
GetCreate,
GetRead
]

0 comments on commit fb5109f

Please sign in to comment.