mirror of
https://github.com/ershisan99/todolist_next.git
synced 2026-01-25 21:02:05 +00:00
refactor
This commit is contained in:
3
src/constants/index.ts
Normal file
3
src/constants/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./routes";
|
||||
export * from "./query-keys";
|
||||
export * from "./result-code";
|
||||
5
src/constants/query-keys/index.ts
Normal file
5
src/constants/query-keys/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const QUERY_KEYS = {
|
||||
TODOLISTS: "todolists",
|
||||
TASKS: "tasks",
|
||||
ME: "me",
|
||||
} as const;
|
||||
5
src/constants/result-code/index.ts
Normal file
5
src/constants/result-code/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export enum ResultCode {
|
||||
Success = 0,
|
||||
InvalidRequest = 1,
|
||||
InvalidRequestWithCaptcha = 10,
|
||||
}
|
||||
4
src/constants/routes/index.ts
Normal file
4
src/constants/routes/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const ROUTES = {
|
||||
HOME: "/",
|
||||
LOGIN: "/login",
|
||||
} as const;
|
||||
Reference in New Issue
Block a user