mirror of
https://github.com/zitadel/zitadel
synced 2024-11-23 11:12:21 +00:00
1c354ca977
* 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
22 lines
339 B
Go
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
|
|
}
|