mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: resource api
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user