feat: registered file based routing
This commit is contained in:
parent
69e3133563
commit
f2e666874d
2 changed files with 17 additions and 18 deletions
13
internal/api/routes/ping.go
Normal file
13
internal/api/routes/ping.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package routes
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func RegisterPingRoutes(api *gin.RouterGroup) {
|
||||
api.GET("/ping", func(c *gin.Context) {
|
||||
c.String(http.StatusOK, "Pong!")
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue