modify get web file path

This commit is contained in:
Jay
2020-08-17 10:09:36 +08:00
parent b3a93abfb9
commit f6ec10b1f4
3 changed files with 38 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func GetSpec() ([]byte, error) {
}
func GetWebFile(fp string) (body []byte, mime string, err error) {
p := filepath.Join("public", fp)
p := filepath.Join("public/swagger", fp)
b, err := Asset(p)
if err != nil {
return nil, "", err