Skip to content

Commit

Permalink
Merge pull request #6 from VNG-Realisatie/feature/add-legacy-endpoint
Browse files Browse the repository at this point in the history
Adds openapi from schema endpoint
  • Loading branch information
joerivrij authored Apr 18, 2023
2 parents 2edae14 + 22b8f68 commit 95f49b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func InitRoutes(loader *models.Loader) *mux.Router {
//redoc
serveMux.HandleFunc("/api/v1/schema", middleware.Adapt(serveRedoc, middleware.ValidateRestMethod("GET"), middleware.LogRequestDetails(), middleware.SetCorsHeaders()))
serveMux.HandleFunc("/api/v1/openapi.yaml", middleware.Adapt(serveOpenApi, middleware.ValidateRestMethod("GET"), middleware.LogRequestDetails(), middleware.SetCorsHeaders()))
serveMux.HandleFunc("/api/v1/schema/openapi.yaml", middleware.Adapt(serveOpenApi, middleware.ValidateRestMethod("GET"), middleware.LogRequestDetails(), middleware.SetCorsHeaders()))

return serveMux
}

0 comments on commit 95f49b7

Please sign in to comment.