1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: add contribute.json (resolve #170)

This commit is contained in:
Ferdinand Mütsch
2021-04-13 23:48:07 +02:00
parent 20dd4cf0ab
commit c2b099378a
4 changed files with 360 additions and 316 deletions

View File

@@ -207,6 +207,7 @@ func main() {
// https://github.com/golang/go/issues/43431
static, _ := fs.Sub(staticFiles, "static")
fileServer := http.FileServer(utils.NeuteredFileSystem{Fs: http.FS(static)})
router.PathPrefix("/contribute.json").Handler(fileServer)
router.PathPrefix("/assets").Handler(fileServer)
router.PathPrefix("/swagger-ui").Handler(fileServer)
router.PathPrefix("/docs").Handler(