add cmd dir and move templates over

This commit is contained in:
cubixle
2022-08-03 15:29:35 +01:00
parent 6a93d24444
commit 1ad835f11f
6 changed files with 0 additions and 0 deletions
@@ -0,0 +1,18 @@
package http
import (
"github.com/labstack/echo/v4"
"github.com/sirupsen/logrus"
)
type HTTP struct {
log *logrus.Logger
}
func RegisterRoutes(e *echo.Echo, log *logrus.Logger) {
h := HTTP{log: log}
e.HTTPErrorHandler = h.DefaultErrorHandler
e.GET("/", h.DefaultHandler)
}