The search is nearly complete for the initial implementation. Just need to figure out what to do with the text search provided, make any required UI changes, and eventual implement pagination via a "load more" button.
30 lines
982 B
Go
30 lines
982 B
Go
package domain
|
|
|
|
// Sub-routes
|
|
const VERSION = "/v1"
|
|
const WEB = "/web"
|
|
const API = "/api"
|
|
const STATE = "/state"
|
|
|
|
// 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"
|
|
const WEB_SEARCH = VERSION + WEB + "/search"
|
|
|
|
// 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"
|
|
|
|
// State prefixed routes
|
|
const STATE_TAGS_CREATE = VERSION + WEB + STATE + "/tags"
|
|
const STATE_TAGS_DELETE = VERSION + WEB + STATE + "/tags/delete"
|