init commit

This commit is contained in:
sentriz
2019-03-29 17:14:33 +00:00
commit e9c0f09d0c
527 changed files with 477627 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package handler
import (
"net/http"
"github.com/labstack/echo"
)
// GetTest doesn't do anything
func (h *Handler) GetTest(c echo.Context) error {
return c.JSON(http.StatusOK, "hello")
}
+13
View File
@@ -0,0 +1,13 @@
package handler
import (
"github.com/jinzhu/gorm"
"github.com/labstack/echo"
)
// Handler is passed to the handler functions so
// they can access the database
type Handler struct {
DB *gorm.DB
Router *echo.Echo
}