mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 22:02:26 +08:00
19 lines
297 B
Go
19 lines
297 B
Go
// Package ping provides ...
|
|
package ping
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// RegisterRoutes register routes
|
|
func RegisterRoutes(group gin.IRoutes) {
|
|
group.GET("/ping", handlePing)
|
|
}
|
|
|
|
// handlePing ping
|
|
func handlePing(c *gin.Context) {
|
|
c.String(http.StatusOK, "it's ok")
|
|
}
|