aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-02-24 18:04:28 -0500
committerXe Iaso <me@xeiaso.net>2024-02-24 18:04:28 -0500
commitae1b9c3b2538ed28dc459b23d528b49e0163db11 (patch)
tree3b9173520d06ff9c756ab196a9cb68f3f6114659 /cmd
parent5b8b30a3f221c21d87cf4174aca5e913136f8399 (diff)
downloadxesite-ae1b9c3b2538ed28dc459b23d528b49e0163db11.tar.xz
xesite-ae1b9c3b2538ed28dc459b23d528b49e0163db11.zip
rapidoc is sick
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/xesite/main.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go
index d994431..bf9c9de 100644
--- a/cmd/xesite/main.go
+++ b/cmd/xesite/main.go
@@ -11,7 +11,6 @@ import (
"path/filepath"
"github.com/donatj/hmacsig"
- swaggerui "github.com/esceer/todo/swagger-ui"
"github.com/facebookgo/flagenv"
_ "github.com/joho/godotenv/autoload"
"github.com/twitchtv/twirp"
@@ -82,7 +81,6 @@ func main() {
mux := http.NewServeMux()
mux.Handle("/", http.FileServer(http.FS(fs)))
mux.Handle("/api/defs/", http.StripPrefix("/api/defs/", http.FileServer(http.FS(pb.Proto))))
- mux.Handle("/api/ui/", http.StripPrefix("/api/ui", swaggerui.Handler(pb.APISpec)))
ms := pb.NewMetaServer(&MetaServer{fs}, twirp.WithServerPathPrefix("/api"))
mux.Handle(ms.PathPrefix(), ms)