feat: add redirect api

This commit is contained in:
steven
2022-09-30 08:41:35 +08:00
parent 39e00637a3
commit 02619882d1
6 changed files with 65 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ func getFileSystem(path string) http.FileSystem {
func skipper(c echo.Context) bool {
path := c.Path()
return common.HasPrefixes(path, "/api")
return common.HasPrefixes(path, "/api", "/o")
}
func embedFrontend(e *echo.Echo) {