fix: move shit to parent folder

This commit is contained in:
hexlocation 2025-05-05 12:22:58 +02:00
parent 7a5d8edfc6
commit 7d869ea36d
6 changed files with 3 additions and 0 deletions

View file

@ -1,26 +0,0 @@
package api
import (
"net/http"
"github.com/gin-gonic/gin"
"stereo.cat/backend/internal/types"
)
func Register(cfg *types.StereoConfig) []types.Route {
routes := []types.Route{
{
Path: "/ping",
Method: http.MethodGet,
Exec: func(cfg *types.StereoConfig) gin.HandlerFunc {
return func(c *gin.Context) {
c.String(http.StatusOK, "Pong!")
}
},
},
}
types.RegisterRoutes("/api", routes, cfg)
return routes
}