Skip to content
Snippets Groups Projects
Select Git revision
  • d4d8440f999611ad9a16fb686797c108032420b5
  • master default
2 results

routes

Blame
  • Forked from cosc360-2016 / project-base
    Source project has a limited visibility.
    routes 998 B
    # Routes
    # This file defines all application routes (Higher priority routes first)
    # ~~~~
    
    #GET    /                           controllers.Assets.at(path="/public/html", file="index.html")
    GET     /                           controllers.Application.index()
    GET     /websocket                  controllers.Application.socket(topic:String)
    
    # Added for our user registration
    GET     /login                      controllers.UserController.loginView()
    GET     /sessions                   controllers.UserController.sessionsView()
    GET     /register                   controllers.UserController.registerView()
    POST    /login                      controllers.UserController.doLogin()
    POST    /register                   controllers.UserController.doRegister()
    POST    /remoteLogout               controllers.UserController.doRemoteLogout()
    
    # Map static resources from the /public folder to the /assets URL path
    GET     /assets/*file               controllers.Assets.versioned(path="/public", file: Asset)