Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit ed361aa

Browse files
committed
removed temp use of RouteGroup with [Middleware] and new ones from vapor
1 parent 83095e7 commit ed361aa

File tree

2 files changed

+2
-34
lines changed

2 files changed

+2
-34
lines changed

Sources/AdminPanel/Support/Extensions/RouteGroup+Middlewares.swift

Lines changed: 0 additions & 32 deletions
This file was deleted.

Sources/AdminPanel/Support/Provider.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ public final class Provider: Vapor.Provider {
5252
Middlewares.secured = protectedMiddlewares
5353

5454
if(config.loadRoutes) {
55-
droplet.group(Middlewares.unsecured) { unsecured in
55+
droplet.group(collection: Middlewares.unsecured) { unsecured in
5656
unsecured.grouped("/").collection(LoginRoutes(droplet: droplet, config: config))
5757
}
5858

59-
droplet.group(Middlewares.secured) { secured in
59+
droplet.group(collection: Middlewares.secured) { secured in
6060
secured.grouped("/admin/dashboard").collection(DashboardRoutes(droplet: droplet))
6161
secured.grouped("/admin/backend_users").collection(BackendUsersRoutes(droplet: droplet))
6262
secured.grouped("/admin/backend_users/roles").collection(BackendUserRolesRoutes(droplet: droplet))

0 commit comments

Comments
 (0)