Add inital route

This commit is contained in:
2024-05-03 22:53:56 +02:00
parent 5ab9d9d0e0
commit 5ba718be26
4 changed files with 21 additions and 5 deletions
+3 -4
View File
@@ -1,9 +1,8 @@
package api
package main
import (
"log"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
type Handler struct{}
@@ -17,8 +16,8 @@ func main() {
h := Handler{}
e := echo.New()
e.Use(middleware.Logger())
e.GET("/entries", h.GetEntries)
log.Print("Listening on :1597")
e.Start(":1597")
}