mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-11 02:32:54 +00:00
34 lines
2.0 KiB
Plaintext
34 lines
2.0 KiB
Plaintext
# Routes
|
|
# This file defines all application routes (Higher priority routes first)
|
|
# ~~~~
|
|
|
|
# Home page
|
|
# serveAsset action requires a path string
|
|
GET / controllers.Application.index(path="index.html")
|
|
|
|
GET /admin controllers.Application.healthcheck()
|
|
GET /config controllers.Application.appConfig()
|
|
|
|
# Routes used exclusively by the React application.
|
|
|
|
# Authentication in React
|
|
GET /authenticate react.controllers.AuthenticationController.authenticate()
|
|
POST /logIn react.controllers.AuthenticationController.logIn()
|
|
GET /callback/oidc @org.pac4j.play.CallbackController.callback()
|
|
POST /callback/oidc @org.pac4j.play.CallbackController.callback()
|
|
|
|
# Data fetching in React
|
|
POST /api/v2/graphql react.controllers.GraphQLController.execute()
|
|
|
|
GET /api/*path controllers.Application.apiNotFound(path)
|
|
POST /api/*path controllers.Application.apiNotFound(path)
|
|
|
|
# Map static resources from the /public folder to the /assets URL path
|
|
GET /assets/*file controllers.Assets.at(path="/public", file)
|
|
|
|
# Analytics route
|
|
POST /track react.controllers.TrackingController.track()
|
|
|
|
# Wildcard route accepts any routes and delegates to serveAsset which in turn serves the Ember client
|
|
GET /*path controllers.Application.index(path)
|