# Routes
# This file defines all application routes (Higher priority routes first)
# https://www.playframework.com/documentation/latest/ScalaRouting
# ~~~~

# An example controller showing a sample home page
GET     /                           controllers.HomeController.graphQl

# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.versioned(path="/public", file: Asset)

# GraphQL endpoint
POST    /graphql                    controllers.HomeController.graphQl

# GraphQL schema endpoint
GET     /graphql-schema             controllers.HomeController.graphqlSchema

# Ingest documents
# POST    /ingest-docs                controllers.HomeController.ingestWithCrosswalk

GET    /graphml                    controllers.HomeController.graphMl

##################
#### REST API ####
##################
GET    /api/ni/:id           controllers.RestController.getNiById(id: String)

#########################################################
## Begin: SecureSocial (Authentication provider) routes #
## ######################################################
#
## Login page
#GET     /login                      securesocial.controllers.LoginPage.login
#GET     /logout                     securesocial.controllers.LoginPage.logout
#
## User Registration and password handling 
#GET     /signup                     securesocial.controllers.Registration.startSignUp
#POST    /signup                     securesocial.controllers.Registration.handleStartSignUp
#GET     /signup/:token              securesocial.controllers.Registration.signUp(token)
#POST    /signup/:token              securesocial.controllers.Registration.handleSignUp(token)
#GET     /reset                      securesocial.controllers.Registration.startResetPassword
#POST    /reset                      securesocial.controllers.Registration.handleStartResetPassword
#GET     /reset/:token               securesocial.controllers.Registration.resetPassword(token)
#POST    /reset/:token               securesocial.controllers.Registration.handleResetPassword(token)
#GET     /password                   securesocial.controllers.PasswordChange.page
#POST    /password                   securesocial.controllers.PasswordChange.handlePasswordChange
#
## Providers entry points
#GET     /authenticate/:provider     securesocial.controllers.ProviderController.authenticate(provider)
#POST    /authenticate/:provider     securesocial.controllers.ProviderController.authenticateByPost(provider)
#GET     /not-authorized             securesocial.controllers.ProviderController.notAuthorized
#
#############################
## End: SecureSocial routes #
## ##########################
