// // File.swift // // // Created by Michiel Carman on 4/13/24. // import Fluent import Vapor struct cntrlJWT: RouteCollection{ func boot(routes: Vapor.RoutesBuilder) throws { let rts = routes.grouped("jwt") rts.get{req in try req.jwt.sign(mdlJWT(result: "test"), kid: .private) } } }