Furthermore, not sure how we are going to handle the searching. Maybe a full-text search index? For now, it has been ignored, but the filters seem to be working properly.
24 lines
765 B
Go
24 lines
765 B
Go
package domain
|
|
|
|
// Sub-routes
|
|
const VERSION = "/v1"
|
|
const WEB = "/web"
|
|
const API = "/api"
|
|
|
|
// Web prefixed routes
|
|
const WEB_LOGIN = VERSION + WEB + "/login"
|
|
const WEB_INDEX = VERSION + WEB
|
|
const WEB_HOME = VERSION + WEB + "/home"
|
|
const WEB_FAVORITES = VERSION + WEB + "/favorites"
|
|
const WEB_CREATE = VERSION + WEB + "/create"
|
|
const WEB_PROFIlE = VERSION + WEB + "/profile"
|
|
const WEB_LIST = VERSION + WEB + "/list"
|
|
const WEB_RECIPE = VERSION + WEB + "/recipe/%d"
|
|
|
|
// API prefixed routes
|
|
const API_AUTH_LOGIN = VERSION + API + "/auth/login"
|
|
const API_AUTH_CALLBACK = VERSION + API + "/auth/callback"
|
|
const API_AUTH_LOGOUT = VERSION + API + "/auth/logout"
|
|
const API_CREATE_RECIPE = VERSION + API + "/recipe"
|
|
const API_SEARCH_RECIPES = VERSION + API + "/recipe/search"
|