You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 rivejä
336 B

  1. //
  2. // File.swift
  3. //
  4. //
  5. // Created by Michiel Carman on 4/13/24.
  6. //
  7. import Fluent
  8. import Vapor
  9. struct cntrlJWT: RouteCollection{
  10. func boot(routes: Vapor.RoutesBuilder) throws {
  11. let rts = routes.grouped("jwt")
  12. rts.get{req in
  13. try req.jwt.sign(mdlJWT(result: "test"), kid: .private)
  14. }
  15. }
  16. }