mirror of
https://github.com/goravel/goravel.git
synced 2025-09-26 20:51:19 +08:00
18 lines
315 B
Go
18 lines
315 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/goravel/framework/support/facades"
|
|
"goravel/app/http/controllers"
|
|
)
|
|
|
|
func Web() {
|
|
facades.Route.GET("/", func(c *gin.Context) {
|
|
c.JSON(200, gin.H{
|
|
"Hello": "Goravel",
|
|
})
|
|
})
|
|
|
|
facades.Route.GET("/user", controllers.UserController{}.Show)
|
|
}
|