mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-26 01:24:03 +00:00
不要になったファイル削除
This commit is contained in:
parent
d9db668f16
commit
96fd39fdaf
38
src/const.ts
38
src/const.ts
|
@ -1,38 +0,0 @@
|
||||||
import { TokenResponse } from "./models";
|
|
||||||
|
|
||||||
const Configs = Object.freeze({
|
|
||||||
API_BASE: 'https://kidshift-beta.nem.one',
|
|
||||||
});
|
|
||||||
|
|
||||||
enum Method {
|
|
||||||
GET = 'GET',
|
|
||||||
POST = 'POST',
|
|
||||||
PUT = 'PUT',
|
|
||||||
DELETE = 'DELETE',
|
|
||||||
}
|
|
||||||
|
|
||||||
const Endpoints = Object.freeze({
|
|
||||||
// Auth
|
|
||||||
LOGIN: {
|
|
||||||
method: Method.POST,
|
|
||||||
endpoint: '/parent/auth/login',
|
|
||||||
response: {} as TokenResponse,
|
|
||||||
request: {} as { code: string },
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
interface EndpointItem {
|
|
||||||
method: Method,
|
|
||||||
endpoint: string,
|
|
||||||
response: any,
|
|
||||||
request?: any,
|
|
||||||
requireAuth?: boolean,
|
|
||||||
}
|
|
||||||
|
|
||||||
export {
|
|
||||||
Configs,
|
|
||||||
Endpoints,
|
|
||||||
Method,
|
|
||||||
EndpointItem,
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user