This file contains route constants so they can be changed dynamically. However, they do not support changes to the router, those are still manual.
21 lines
525 B
Go
21 lines
525 B
Go
package domain
|
|
|
|
// Sub-routes
|
|
const VERSION = "/v1"
|
|
const WEB = VERSION + "/web"
|
|
const API = VERSION + "/api"
|
|
|
|
// Web prefixed routes
|
|
const WEB_LOGIN = WEB + "/login"
|
|
const WEB_INDEX = WEB
|
|
const WEB_HOME = WEB + "/home"
|
|
const WEB_FAVORITES = WEB + "/favorites"
|
|
const WEB_CREATE = WEB + "/create"
|
|
const WEB_PROFIlE = WEB + "/profile"
|
|
const WEB_LIST = WEB + "/list"
|
|
|
|
// API prefixed routes
|
|
const API_AUTH_LOGIN = API + "/auth/login"
|
|
const API_AUTH_CALLBACK = API + "/auth/callback"
|
|
const API_AUTH_LOGOUT = API + "/auth/logout"
|