[message pusher] - standlone gin service
This commit is contained in:
15
message_pusher/router/OctopusRouter.go
Normal file
15
message_pusher/router/OctopusRouter.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func OctopusRouter(r *gin.Engine) {
|
||||
octopusGroup := r.Group("/octopus")
|
||||
{
|
||||
octopusGroup.GET("/", func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"message": "Welcome to octopus route group"})
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user