-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_apiPath.ts
More file actions
71 lines (65 loc) · 1.58 KB
/
_apiPath.ts
File metadata and controls
71 lines (65 loc) · 1.58 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
* @description base API endpoints
*/
export const BASE_API = {
AUTHS: '/auths',
SURVEYS: '/surveys',
MONTH_MENUS: '/month-menus',
MENU_CATEGORIES: '/menu-categories',
USERS: '/users',
OPEN_APIS: '/open-apis',
};
/**
* @description auth API endpoints
*/
export const AUTH_API = {
SIGNUP: `${BASE_API.AUTHS}/signup`,
SEND: `${BASE_API.AUTHS}/send`,
VERIFY: `${BASE_API.AUTHS}/verify`,
LOGIN: `${BASE_API.AUTHS}/login`,
REISSUE: `${BASE_API.AUTHS}/reissue`,
LOGOUT: `${BASE_API.AUTHS}/logout`,
GOOGLELOGIN: `${BASE_API.AUTHS}/oauth2/google`,
};
/**
* @description 설문(survey) API endpoints, param
*/
export const SURVEY_API = {
SURVEYS: BASE_API.SURVEYS,
SORT: 'sort',
RESPONSES: '/responses',
};
/**
* @description 식단(menu) API endpoints, param
*/
export const MENUS_API = {
MONTH_MENUS: BASE_API.MONTH_MENUS,
AUTO: `${BASE_API.MONTH_MENUS}/auto`,
SAVE: `${BASE_API.MONTH_MENUS}/save`,
FOODS: `${BASE_API.MONTH_MENUS}/foods`,
FOOD_NAME: 'foodName',
COUNT: `${BASE_API.MONTH_MENUS}/count`,
SEARCH: `${BASE_API.MONTH_MENUS}/search`,
};
/**
* @description 메뉴 카테고리 API endpoints, param
*/
export const MENU_CAGEGORY_API = {
MENU_CATEGORIES: BASE_API.MENU_CATEGORIES,
MAJOR_CATEGORY: 'major-category',
MINOR_CATEGORY: 'minor-category',
};
/**
* @description user API endpoints
*/
export const USER_API = {
USERS: BASE_API.USERS,
CHECK_PW: `${BASE_API.USERS}/check-pw`,
EDIT_PW: `${BASE_API.USERS}/edit-pw`,
};
/**
* @description user API endpoints
*/
export const OPEN_API = {
RECIPE: `${BASE_API.OPEN_APIS}/recipe`,
};