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.

29 lines
607B

  1. package config;
  2. import java.util.concurrent.TimeUnit
  3. import fr.litarvan.paladin.http.AcceptCrossOriginRequestsMiddleware
  4. import fr.slixe.mining.http.controller.MainController
  5. [
  6. sessionDuration: TimeUnit.DAYS.toMillis(2), // 2 days
  7. /**
  8. * The app controllers, call them whatever you want to
  9. */
  10. controllers: [
  11. main: MainController
  12. ],
  13. routeMiddlewares:
  14. [
  15. cors: AcceptCrossOriginRequestsMiddleware
  16. ],
  17. /**
  18. * Global middlewares (applied on all routes)
  19. */
  20. globalMiddlewares: [
  21. AcceptCrossOriginRequestsMiddleware
  22. ]
  23. ]