-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
api_const.go
32 lines (29 loc) · 1.12 KB
/
api_const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package controller
const (
// API represents the group of API.
API = "/api"
// APIBooks represents the group of book management API.
APIBooks = API + "/books"
// APIBooksID represents the API to get book data using id.
APIBooksID = APIBooks + "/:id"
// APICategories represents the group of category management API.
APICategories = API + "/categories"
// APIFormats represents the group of format management API.
APIFormats = API + "/formats"
)
const (
// APIAccount represents the group of auth management API.
APIAccount = API + "/auth"
// APIAccountLoginStatus represents the API to get the status of logged in account.
APIAccountLoginStatus = APIAccount + "/loginStatus"
// APIAccountLoginAccount represents the API to get the logged in account.
APIAccountLoginAccount = APIAccount + "/loginAccount"
// APIAccountLogin represents the API to login by session authentication.
APIAccountLogin = APIAccount + "/login"
// APIAccountLogout represents the API to logout.
APIAccountLogout = APIAccount + "/logout"
)
const (
// APIHealth represents the API to get the status of this application.
APIHealth = API + "/health"
)