feat: add initial project layout

This commit is contained in:
Alex Wellnitz
2025-09-12 15:08:52 +02:00
parent 22205abb66
commit cba8e97a30
6 changed files with 131 additions and 0 deletions

20
internal/server/server.go Normal file
View File

@@ -0,0 +1,20 @@
package server
import (
"net/http"
"git.dev-null.rocks/alexohneander/distributed-cache/api"
"github.com/labstack/echo/v4"
)
func Start() {
e := echo.New()
// Routes
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
e.GET("/api/v1/cache/:id", api.GetItem)
e.Logger.Fatal(e.Start(":8080"))
}