-
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.
.env 파일 타입 선언 및 router 및 경로 설정 (#133)
* feat: (#124) .env 파일에 타입을 적용하여 자동 완성 되도록 적용 * feat: (#124) path, router 설정 및 잘못된 URL 경로 수정 * chore: (#124) 스타일드 컴포넌트 이름 수정 및 상수 URL 사용
- Loading branch information
1 parent
3663cf1
commit a9cd61b
Showing
7 changed files
with
42 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare module NodeJS { | ||
interface ProcessEnv { | ||
VOTOGETHER_BASE_URL: string; | ||
VOTOGETHER_MOCKING_URL: string; | ||
} | ||
} |
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,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
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