mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-24 10:00:07 +00:00
43 lines
3.0 KiB
Plaintext
43 lines
3.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 controllers.AuthenticationController.authenticate()
|
|
POST /logIn controllers.AuthenticationController.logIn()
|
|
POST /signUp controllers.AuthenticationController.signUp()
|
|
POST /resetNativeUserCredentials controllers.AuthenticationController.resetNativeUserCredentials()
|
|
GET /callback/:protocol controllers.SsoCallbackController.handleCallback(protocol: String)
|
|
POST /callback/:protocol controllers.SsoCallbackController.handleCallback(protocol: String)
|
|
GET /logOut controllers.CentralLogoutController.executeLogout()
|
|
|
|
# Proxies API requests to the metadata service api
|
|
GET /api/*path controllers.Application.proxy(path)
|
|
POST /api/*path controllers.Application.proxy(path)
|
|
DELETE /api/*path controllers.Application.proxy(path)
|
|
PUT /api/*path controllers.Application.proxy(path)
|
|
|
|
# Proxies API requests to the metadata service api
|
|
GET /openapi/*path controllers.Application.proxy(path)
|
|
POST /openapi/*path controllers.Application.proxy(path)
|
|
DELETE /openapi/*path controllers.Application.proxy(path)
|
|
PUT /openapi/*path controllers.Application.proxy(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 controllers.TrackingController.track()
|
|
|
|
# Wildcard route accepts any routes and delegates to serveAsset which in turn serves the React Bundle
|
|
GET /*path controllers.Application.index(path)
|