|
1 | 1 | import { TEAM_ID } from "@/constants/team"; |
2 | 2 |
|
3 | 3 | export const apiRoutes = { |
4 | | - //로그인 |
5 | | - Login: () => `/${TEAM_ID}/auth/login`, //post |
6 | | - //비밀번호변경 |
7 | | - Password: () => `/${TEAM_ID}/auth/password`, //put |
8 | | - //카드 |
9 | | - Cards: () => `/${TEAM_ID}/cards`, //post,get |
10 | | - CardDetail: (cardId: number) => `/${TEAM_ID}/cards/${cardId}`, //get,put,delete |
11 | | - //컬럼 |
12 | | - Columns: () => `/${TEAM_ID}/columns`, //post,get |
13 | | - ColumnDetail: (columnId: number) => `/${TEAM_ID}/columns/${columnId}`, //put,delete |
14 | | - ColumnCardImage: (columnId: number) => |
| 4 | + // 로그인 |
| 5 | + login: () => `/${TEAM_ID}/auth/login`, //post |
| 6 | + |
| 7 | + // 비밀번호 변경 |
| 8 | + password: () => `/${TEAM_ID}/auth/password`, //put |
| 9 | + |
| 10 | + // 카드 |
| 11 | + cards: () => `/${TEAM_ID}/cards`, //post,get |
| 12 | + cardDetail: (cardId: number) => `/${TEAM_ID}/cards/${cardId}`, //get,put,delete |
| 13 | + |
| 14 | + // 칼럼 |
| 15 | + columns: () => `/${TEAM_ID}/columns`, //post,get |
| 16 | + columnDetail: (columnId: number) => `/${TEAM_ID}/columns/${columnId}`, //put,delete |
| 17 | + columnCardImage: (columnId: number) => |
15 | 18 | `/${TEAM_ID}/columns/${columnId}/card-image`, //post |
16 | | - //댓글 |
17 | | - Comments: () => `/${TEAM_ID}/comments`, //post,get |
18 | | - CommentsDetail: (commentId: number) => `/${TEAM_ID}/comments/${commentId}`, //put,delete |
19 | | - //대시보드 |
20 | | - Dashboards: () => `/${TEAM_ID}/dashboards`, //post,get |
21 | | - DashboardDetail: (dashboardId: number) => |
| 19 | + |
| 20 | + // 댓글 |
| 21 | + comments: () => `/${TEAM_ID}/comments`, //post,get |
| 22 | + commentsDetail: (commentId: number) => `/${TEAM_ID}/comments/${commentId}`, //put,delete |
| 23 | + |
| 24 | + // 대시보드 |
| 25 | + dashboards: () => `/${TEAM_ID}/dashboards`, //post,get |
| 26 | + dashboardDetail: (dashboardId: number) => |
22 | 27 | `/${TEAM_ID}/dashboards/${dashboardId}`, //get,put,delete |
23 | | - //대시보드 초대하기 |
24 | | - DashboardInvite: (dashboardId: number) => |
| 28 | + |
| 29 | + // 대시보드 초대하기 |
| 30 | + dashboardInvite: (dashboardId: number) => |
25 | 31 | `/${TEAM_ID}/dashboards/${dashboardId}/invitations`, //post,get |
26 | | - DashboardInviteDelete: (dashboardId: number, invitationId: number) => |
| 32 | + dashboardInviteDelete: (dashboardId: number, invitationId: number) => |
27 | 33 | `/${TEAM_ID}/dashboards/${dashboardId}/invitations/${invitationId}`, //delete |
28 | | - //초대 받은 대시보드 |
29 | | - Invitations: () => `/${TEAM_ID}/invitations`, //get |
| 34 | + |
| 35 | + // 초대받은 대시보드 |
| 36 | + invitations: () => `/${TEAM_ID}/invitations`, //get |
30 | 37 | invitationDetail: (invitationId: number) => |
31 | 38 | `/${TEAM_ID}/invitations/${invitationId}`, //put |
32 | | - // [Members] |
| 39 | + |
| 40 | + // Members |
33 | 41 | members: () => `/${TEAM_ID}/members`, //get |
34 | | - memberDetail: (memberId: number) => `/${TEAM_ID}/members/${memberId}`, //put |
| 42 | + memberDetail: (memberId: number) => `/${TEAM_ID}/members/${memberId}`, //delete |
35 | 43 |
|
36 | | - // [Users] |
| 44 | + // Users |
37 | 45 | users: () => `/${TEAM_ID}/users`, //post |
38 | | - userMe: () => `/${TEAM_ID}/users/me`, //get,put |
| 46 | + usersMe: () => `/${TEAM_ID}/users/me`, //get,put |
39 | 47 | userMeImage: () => `/${TEAM_ID}/users/me/image`, //post |
40 | 48 | }; |
0 commit comments