fix: move shit to parent folder
This commit is contained in:
parent
7a5d8edfc6
commit
7d869ea36d
6 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue