# 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.index

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

# GraphQL endpoint
#TODO: This needs to be a POST endpoint that would take the query as the payload
POST    /graphql                    controllers.HomeController.graphQl

# GraphiQL endpoint
#GET     /graphiql                  controllers.HomeController.graphiql

#GET     /graphql-schema             controllers.HomeController.graphqlSchema