Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions backend/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
abStudiesRouter,
CompletionController,
ProgressController,
PublicController,
StoredDataController,
UserCourseSettingsController,
} from "./routes"
Expand All @@ -15,8 +16,13 @@ export function apiRouter(ctx: ApiContext) {
const progressController = new ProgressController(ctx)
const storedDataController = new StoredDataController(ctx)
const userCourseSettingsController = new UserCourseSettingsController(ctx)
const publicController = new PublicController(ctx)

return Router()
.get("/public/frontpage", publicController.frontpage)
.get("/public/courses", publicController.courses)
.get("/public/study-modules", publicController.studyModules)
.get("/public/current-user", publicController.currentUser)
.get("/completions/:slug", completionController.completions)
.get("/completionTiers/:slug", completionController.completionTiers)
.get(
Expand Down
1 change: 1 addition & 0 deletions backend/api/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from "./progress"
export * from "./storedData"
export * from "./userCourseSettings"
export * from "./abStudio"
export * from "./public"
Loading
Loading