# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# General
GET  /                                 hydro.controllers.StandardActions.index
GET  /app/                             hydro.controllers.StandardActions.reactAppRoot
GET  /app/*anyString                   hydro.controllers.StandardActions.reactApp(anyString)
GET  /appwithoutcreds/                 hydro.controllers.StandardActions.reactAppWithoutCredentials

# Internal API
POST /scalajsapi/*path                 hydro.controllers.InternalApi.scalaJsApiPost(path: String)
GET  /scalajsapi/*path                 hydro.controllers.InternalApi.scalaJsApiGet(path: String)
GET  /websocket/hydropush/:updateToken/  hydro.controllers.InternalApi.hydroPushSocketWebsocket(updateToken)

# External API
GET  /externalapi/healthcheck/         hydro.controllers.StandardActions.healthCheck
GET  /versions/                        app.controllers.Application.versionsInfo
GET  /rounds/:secret/                  app.controllers.Application.roundsInfo(secret)
GET  /import/:secret/:serverDomain/    app.controllers.ExternalApi.importFromOtherServer(secret, serverDomain)

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