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

Commit

Permalink
removed temp use of RouteGroup with [Middleware] and new ones from vapor
Browse files Browse the repository at this point in the history
  • Loading branch information
Casperhr committed Jan 6, 2017
1 parent 83095e7 commit ed361aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
32 changes: 0 additions & 32 deletions Sources/AdminPanel/Support/Extensions/RouteGroup+Middlewares.swift

This file was deleted.

4 changes: 2 additions & 2 deletions Sources/AdminPanel/Support/Provider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public final class Provider: Vapor.Provider {
Middlewares.secured = protectedMiddlewares

if(config.loadRoutes) {
droplet.group(Middlewares.unsecured) { unsecured in
droplet.group(collection: Middlewares.unsecured) { unsecured in
unsecured.grouped("/").collection(LoginRoutes(droplet: droplet, config: config))
}

droplet.group(Middlewares.secured) { secured in
droplet.group(collection: Middlewares.secured) { secured in
secured.grouped("/admin/dashboard").collection(DashboardRoutes(droplet: droplet))
secured.grouped("/admin/backend_users").collection(BackendUsersRoutes(droplet: droplet))
secured.grouped("/admin/backend_users/roles").collection(BackendUserRolesRoutes(droplet: droplet))
Expand Down

0 comments on commit ed361aa

Please sign in to comment.