Skip to content
Trilha

Error catalog

E_NO_METHOD

route.go has no exported HTTP method

route.go declares no GET, POST, PUT, PATCH or DELETE, so the folder is a URL that answers nothing.

Fix

Export at least one method handler with the exact name of the method.

func GET(c *trilha.Ctx) error { return c.JSON(200, data) }