You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
275 B
17 lines
275 B
package route
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type IndexHandler struct{}
|
|
|
|
func (IndexHandler) GetPath() string {
|
|
return ""
|
|
}
|
|
func (c *IndexHandler) Routes(g gin.IRoutes) {
|
|
g.Any("/", c.index)
|
|
}
|
|
func (IndexHandler) index(c *gin.Context) {
|
|
c.String(200, "hello")
|
|
}
|