mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-20 21:09:52 +00:00
⬆️ Bump @hey-api/openapi-ts from 0.73.0 to 0.97.3 and migrate to new client (#2388)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
dependabot[bot]
parent
f8b7926d1c
commit
a8f1ba0e70
@@ -1,8 +1,11 @@
|
||||
// Note: the `PrivateService` is only available when generating the client
|
||||
// for local environments
|
||||
import { OpenAPI, PrivateService } from "../../src/client"
|
||||
import { PrivateService } from "../../src/client"
|
||||
import { client } from "../../src/client/client.gen"
|
||||
|
||||
OpenAPI.BASE = `${process.env.VITE_API_URL}`
|
||||
client.setConfig({
|
||||
baseURL: `${process.env.VITE_API_URL}`,
|
||||
})
|
||||
|
||||
export const createUser = async ({
|
||||
email,
|
||||
@@ -11,12 +14,13 @@ export const createUser = async ({
|
||||
email: string
|
||||
password: string
|
||||
}) => {
|
||||
return await PrivateService.createUser({
|
||||
requestBody: {
|
||||
const response = await PrivateService.createUser({
|
||||
body: {
|
||||
email,
|
||||
password,
|
||||
is_verified: true,
|
||||
full_name: "Test User",
|
||||
},
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user