1
0
mirror of https://github.com/zitadel/zitadel.git synced 2024-12-18 13:57:32 +00:00
Silvan 1c354ca977
ci: improve performance ()
* pipeline runs on ubuntu instead of docker
* added Makefile to build zitadel core (backend) and console (frontend)
* pipeline runs in parallel where possible
* pipeline is split into multiple jobs
* removed goreleaser
* added command to check if zitadel instance is running
2023-07-17 10:08:20 +02:00

22 lines
339 B
Go

package openapi
import (
"embed"
"net/http"
"github.com/rs/cors"
)
const (
HandlerPrefix = "/openapi/v2/swagger"
)
//go:embed v2/zitadel/*
var openapi embed.FS
func Start() (http.Handler, error) {
handler := &http.ServeMux{}
handler.Handle("/", cors.AllowAll().Handler(http.FileServer(http.FS(openapi))))
return handler, nil
}