diff --git a/Makefile b/Makefile index 08c8615..b3bd3cc 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ +BINARY = termcloud + build: clean - go build -o build/termcord cmd/termcord/main.go + go build -o build/${BINARY} cmd/${BINARY}/main.go clean: go clean ./... diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index b9b6782..9151e8b 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -3,5 +3,8 @@ package handlers import "github.com/labstack/echo/v4" func RootHandler(c echo.Context) error { - return c.String(200, "Hello, World!") + return c.JSON(200, map[string]string{ + "status": "😺", + "docs": "https://illfillthisoutlater.com", + }) }