Fix API data types, use unsecured router for /docs

- Note: Use /docs swagger playground without login
- Otherwise: Session User will be used which leads to role mismatch
This commit is contained in:
Christoph Kluge
2022-09-15 17:38:11 +02:00
parent 8e90c954ff
commit 922e94e835
5 changed files with 277 additions and 18 deletions

View File

@@ -264,7 +264,7 @@ func main() {
if flagDev {
r.Handle("/playground", playground.Handler("GraphQL playground", "/query"))
secured.PathPrefix("/docs").Handler(httpSwagger.WrapHandler)
r.PathPrefix("/docs").Handler(httpSwagger.WrapHandler)
}
secured.Handle("/query", graphQLEndpoint)