fix: resource api

This commit is contained in:
email
2022-02-04 18:54:24 +08:00
parent d609f2741d
commit 4535e0ce6d
8 changed files with 47 additions and 19 deletions

View File

@ -47,7 +47,7 @@ func (s *Server) registerWebhookRoutes(g *echo.Group) {
return nil
})
g.GET("r/:resourceId/:filename", func(c echo.Context) error {
g.GET("/r/:resourceId/:filename", func(c echo.Context) error {
resourceId, err := strconv.Atoi(c.Param("resourceId"))
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("ID is not a number: %s", c.Param("resourceId"))).SetInternal(err)