Ir para o conteúdo
Trilha

Catálogo de erros

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.

Conserto

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

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