Updated to BunRouter

This commit is contained in:
2024-01-24 11:22:33 -07:00
parent ab639dec20
commit 8d3f803474
17 changed files with 387 additions and 160 deletions

View File

@ -3,9 +3,11 @@ package api
import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/uptrace/bunrouter"
)
func Ping(c echo.Context) error {
return c.String(http.StatusOK, "Pong!")
func Ping(w http.ResponseWriter, req bunrouter.Request) error {
w.WriteHeader(http.StatusOK)
w.Write([]byte("Pong!"))
return nil
}