import Foundation import Fluent import Vapor import Crypto //import JWT //struct Example: JWTPayload, Content{ // // var test: String // func verify(using signer: JWTSigner) throws{} //} func routes(_ app: Application) throws { app.routes.caseInsensitive = true app.routes.defaultMaxBodySize = "64mb"; let baseApp = app.grouped("api").grouped("v1.0") baseApp.get { req async in "Training Services Version 1.0" } try baseApp.register(collection: cntrlAssociate()) try baseApp.register(collection: cntrlDepartment()) try baseApp.register(collection: cntrlDocument()) try baseApp.register(collection: cntrlDocType()) }