Logo
Explore Help
Sign In
TheArchive/zitadel
1
0
Fork 0
You've already forked zitadel
mirror of https://github.com/zitadel/zitadel.git synced 2025-05-10 05:56:47 +00:00
Code Issues Packages Projects Releases Wiki Activity
zitadel/openapi/handler.go

20 lines
342 B
Go
Raw Normal View History

fix: add api docs and http handler for openapi files (#1526) * tests * chore: set vars for platform in dockerfile * simplyfy generate * correct dockerfile * add openapi to gitignore * object files * protos * update protoc version * admin only secuity missing * texts * start secutiry * add handler * add description * add descriptions and remove adddress * default limit * add mapping for openapi * generate statik for openapi * remove address converter * executable * operator test Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2021-04-07 08:23:47 +02:00
package openapi
import (
"net/http"
"github.com/rakyll/statik/fs"
_ "github.com/caos/zitadel/openapi/statik"
)
func Start() (http.Handler, error) {
statikFS, err := fs.NewWithNamespace("swagger")
if err != nil {
return nil, err
}
handler := &http.ServeMux{}
handler.Handle("/", http.FileServer(statikFS))
return handler, nil
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 379ms Template: 23ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API