Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit f60237d

Browse files
committed
feat(constants): update api.ts
1 parent 3f9d580 commit f60237d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/common/constants/api.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Env from '@/common/env/'
22

33
const getBffUrl = (path: string): string => [Env.url, path].join('')
44

5+
/** API のエンドポイント */
56
export const API_ENDPOINT = {
67
/** ログイン状態チェック */
78
LOGIN_CHECK: getBffUrl('/login-check'),
@@ -10,3 +11,14 @@ export const API_ENDPOINT = {
1011
/** ログアウト */
1112
LOGOUT: getBffUrl('/logout')
1213
}
14+
15+
/** アクセストークンヘッダ名 - API サーバーとのログインセッション用のトークン名 */
16+
export const ACCESS_TOKEN_NAME = 'access-token'
17+
18+
/** HTTP ステータス */
19+
export const HTTP_STATUS = {
20+
/** OK */
21+
OK: 200,
22+
/** 認証が必要である */
23+
UNAUTHORIZED: 401
24+
}

0 commit comments

Comments
 (0)