Connected authentication to the backend and fixed CORS

This commit is contained in:
2022-06-04 16:27:39 +02:00
parent 72123aee2f
commit 4667029869
15 changed files with 3194 additions and 106 deletions

16
frontend/codegen.yml Normal file
View File

@ -0,0 +1,16 @@
overwrite: true
schema: "http://127.0.0.1:8000/graphql"
documents:
- 'src/queries/*.graphql'
generates:
./src/generated/graphql.ts:
plugins:
- typescript
- typescript-operations
- typescript-react-query
config:
fetcher:
fetchParams:
headers:
Content-Type: application/json
endpoint: "http://localhost:8000/graphql"