mirror of
https://github.com/yourselfhosted/slash.git
synced 2025-06-05 22:09:34 +02:00
feat: add redirect api
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user