-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (#124) path, router 설정 및 잘못된 URL 경로 수정
- Loading branch information
1 parent
ba0b6ba
commit 33f196c
Showing
4 changed files
with
33 additions
and
21 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,23 +1,21 @@ | ||
export const BASE_PATH = { | ||
HOME: '/', | ||
|
||
LANDING: '/landing', | ||
LOGIN: '/login', | ||
|
||
POST: '/posts', | ||
|
||
USER: '/users', | ||
|
||
ADMIN: '/admin', | ||
SEARCH: '/search', | ||
}; | ||
|
||
export const PATH = { | ||
...BASE_PATH, | ||
|
||
POST_WRITE: `${BASE_PATH.POST}/write`, | ||
POST_WRITE_EDIT: `${BASE_PATH.POST}/write/:postId`, | ||
POST_DETAIL: `${BASE_PATH.POST}/:postId`, | ||
POST_VOTE_RESULT: `${BASE_PATH.POST}/:postId/results`, | ||
|
||
POST_VOTE_RESULT: `${BASE_PATH.POST}/result/:postId`, | ||
POST_CATEGORY: `${BASE_PATH.POST}/category/:categoryId`, | ||
USER_POST: `${BASE_PATH.USER}/posts`, | ||
USER_VOTE: `${BASE_PATH.USER}/votes`, | ||
USER_INFO: `${BASE_PATH.USER}/myPage`, | ||
}; |
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