0001 protocol Routing{ 0002 func use(middleware middleware: Middleware) 0003 func get(path: String, handler: Route.Handler) 0004 func put(path: String, handler: Route.Handler) 0005 func delete(path: String, handler: Route.Handler) 0006 func post(path: String, handler: Route.Handler) 0007 func patch(path: String, handler: Route.Handler) 0008 func all(path: String, handler: Route.Handler) 0009 } 0010 0011 public class Router
Application.swift:174 extension Blackfish: Routing {Router.swift:12 public class Router: Routing {: Routing { 0012 0013 var middleware
Application.swift:176 public func use(path path: String, router: Router) {Application.swift:185 let router = Router()Controller.swift:4 func routes(router: Router)Route.swift:17 class func createRoutesFromRouter(router: Router, withPath path: String) {: [Middleware] = [] 0014 var gets
Router.swift:31 self.middleware.append(middleware): [String: Route.Handler] = [:] 0015 var puts
Route.swift:18 addHandlers(router.gets, toRoutesWithFunction: get, withPath: path)Router.swift:35 gets[path] = handler: [String: Route.Handler] = [:] 0016 var deletes
Route.swift:20 addHandlers(router.puts, toRoutesWithFunction: put, withPath: path)Router.swift:39 puts[path] = handler: [String: Route.Handler] = [:] 0017 var posts
Route.swift:21 addHandlers(router.deletes, toRoutesWithFunction: delete, withPath: path)Router.swift:43 deletes[path] = handler;: [String: Route.Handler] = [:] 0018 var patches
Route.swift:19 addHandlers(router.posts, toRoutesWithFunction: post, withPath: path)Router.swift:47 posts[path] = handler;: [String: Route.Handler] = [:] 0019 var alls
Route.swift:22 addHandlers(router.patches, toRoutesWithFunction: patch, withPath: path)Router.swift:51 patches[path] = handler;: [String: Route.Handler] = [:] 0020 0021 public init
Route.swift:23 addHandlers(router.alls, toRoutesWithFunction: all, withPath: path)Router.swift:55 alls[path] = handler;() { 0022 self.setupRoutes() 0023 } 0024 0025 public func setupRoutes
Application.swift:185 let router = Router()() { 0026 0027 } 0028 0029 final public func use(middleware middleware: Middleware) { 0030 self.middleware.append(middleware) 0031 } 0032 0033 final public func get(path: String, handler: Route.Handler) { 0034 gets[path] = handler 0035 } 0036 0037 final public func put(path: String, handler: Route.Handler) { 0038 puts[path] = handler 0039 } 0040 0041 final public func delete(path: String, handler: Route.Handler) { 0042 deletes[path] = handler; 0043 } 0044 0045 final public func post(path: String, handler: Route.Handler) { 0046 posts[path] = handler; 0047 } 0048 0049 final public func patch(path: String, handler: Route.Handler) { 0050 patches[path] = handler; 0051 } 0052 0053 public func all(path: String, handler: Route.Handler) { 0054 alls[path] = handler; 0055 } 0056 }
Router.swift:23 self.setupRoutes()