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:
1
main.go
1
main.go
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user