16 lines
278 B
Go
Executable File
16 lines
278 B
Go
Executable File
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"})
|
|
})
|
|
}
|
|
}
|