mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-17 21:37:35 +00:00
20 lines
342 B
Go
20 lines
342 B
Go
|
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
|
||
|
}
|