mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-22 16:55:36 +02:00
add openapi-typescript and openapi-fetch to project and generate types with it
This commit is contained in:
3785
web/src/lib/api/api.d.ts
vendored
Normal file
3785
web/src/lib/api/api.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
web/src/lib/api/index.ts
Normal file
6
web/src/lib/api/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import createClient from "openapi-fetch";
|
||||
import type { paths } from "./api.d.ts";
|
||||
import { env } from '$env/dynamic/public';
|
||||
|
||||
const client = createClient<paths>({ baseUrl: env.PUBLIC_API_URL });
|
||||
export default client;
|
||||
Reference in New Issue
Block a user