Hayden Hargreaves cf0e291dd9 (FEAT): Implemented a route constants domain file.
This file contains route constants so they can be changed dynamically.
However, they do not support changes to the router, those are still
manual.
2025-06-25 18:23:47 -07:00

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"