Skip to content

Commit

Permalink
[fix][Compendium] Compendium routed added back
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsMoll committed Dec 16, 2020
1 parent 83c1fe0 commit 3147f82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/App/Subject/SubjectWebController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ final class SubjectWebController: RouteCollection {
subject.get(use: details)

let authRoutes = routes.grouped(RedirectMiddleware<User>(path: "/login"))
authRoutes.get("edit", use: editSubject)
authRoutes.get("compendium", use: compendium)
authRoutes.get("subjects", "create", use: createSubject)

let authSubject = authRoutes.grouped("subjects", Subject.parameter)
authSubject.get("edit", use: editSubject)
authSubject.get("compendium", use: compendium)
}

func search(on req: Request) throws -> EventLoopFuture<View> {
Expand Down

0 comments on commit 3147f82

Please sign in to comment.