-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 투표와 라우팅 관련 버그를 수정한다.
- Loading branch information
Showing
79 changed files
with
1,425 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { authInstance as axios } from './axios'; | ||
import { EditUsernameRequest } from '../types/auth'; | ||
import { publicAuthAxiosInstance, privateAuthAxiosInstance } from './axios'; | ||
|
||
const signin = (code: string) => axios.post('/signin', code); | ||
const signin = (code: string) => publicAuthAxiosInstance.post('/signin', code); | ||
const getUser = () => privateAuthAxiosInstance.get('/me'); | ||
const editUsername = (userName: EditUsernameRequest) => | ||
privateAuthAxiosInstance.patch('/me/name', userName); | ||
|
||
export { signin }; | ||
export { signin, getUser, editUsername }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import { Group } from '../types/group'; | ||
import { EditRolesRequest } from '../types/role'; | ||
import { groupInstance as axios } from './axios'; | ||
import { privateGroupsAxiosInstance } from './axios'; | ||
|
||
const getRoles = (groupCode: Group['code']) => axios.get(`/${groupCode}/roles/names`); | ||
const getRoles = (groupCode: Group['code']) => | ||
privateGroupsAxiosInstance.get(`/${groupCode}/roles/names`); | ||
const editRoles = (groupCode: Group['code'], roles: EditRolesRequest) => | ||
axios.put(`/${groupCode}/roles/names`, roles); | ||
const allocateRoles = (groupCode: Group['code']) => axios.post(`/${groupCode}/roles`); | ||
const getRolesHistories = (groupCode: Group['code']) => axios.get(`/${groupCode}/roles/histories`); | ||
privateGroupsAxiosInstance.put(`/${groupCode}/roles/names`, roles); | ||
const allocateRoles = (groupCode: Group['code']) => | ||
privateGroupsAxiosInstance.post(`/${groupCode}/roles`); | ||
const getRolesHistories = (groupCode: Group['code']) => | ||
privateGroupsAxiosInstance.get(`/${groupCode}/roles/histories`); | ||
|
||
export { getRoles, editRoles, allocateRoles, getRolesHistories }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { groupInstance as axios } from './axios'; | ||
import { privateGroupsAxiosInstance } from './axios'; | ||
|
||
import { Group } from '../types/group'; | ||
import { LinkSlackRequest } from '../types/slack'; | ||
|
||
const linkSlack = (slack: LinkSlackRequest, groupCode: Group['code']) => | ||
axios.post(`/${groupCode}/slack`, slack); | ||
privateGroupsAxiosInstance.post(`/${groupCode}/slack`, slack); | ||
|
||
export { linkSlack }; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.