diff options
Diffstat (limited to 'code/app/src/lib/api/projects/index.ts')
| -rw-r--r-- | code/app/src/lib/api/projects/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/code/app/src/lib/api/projects/index.ts b/code/app/src/lib/api/projects/index.ts new file mode 100644 index 0000000..ea49631 --- /dev/null +++ b/code/app/src/lib/api/projects/index.ts @@ -0,0 +1,12 @@ +import { api_base } from "$lib/configuration"; +import { http_post_async } from "../_fetch"; + +export const http_projects = { + create_async(payload: CreateProjectPayload): Promise<Response> { + return http_post_async(api_base("projects/create", true), payload); + } +}; + +export type CreateProjectPayload = { + name: "" +}
\ No newline at end of file |
