Skip to content

Commit

Permalink
refactor: ♻️ rename RegisterRoutes() to RegisterFileRoutes()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 19, 2023
1 parent cee3ff2 commit aa02fe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func main() {
return err
}

err = apis.RegisterRoutes(e)
err = apis.RegisterFileRoutes(e)

return err
})
Expand Down
2 changes: 1 addition & 1 deletion server/pkg/apis/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func newFile(app core.App, files *models.Collection, author *models.Record, file
return fileModel, nil
}

func RegisterRoutes(e *core.ServeEvent) error {
func RegisterFileRoutes(e *core.ServeEvent) error {
_, err := e.Router.AddRoute(echo.Route{
Method: http.MethodPost,
Path: "/api/posts",
Expand Down

0 comments on commit aa02fe2

Please sign in to comment.