mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 23:27:17 +08:00
22 lines
373 B
Go
22 lines
373 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/goravel/framework/contracts/http"
|
|
)
|
|
|
|
type OpenRestyController struct {
|
|
//Dependent services
|
|
}
|
|
|
|
func NewOpenrestyController() *OpenRestyController {
|
|
return &OpenRestyController{
|
|
//Inject services
|
|
}
|
|
}
|
|
|
|
func (r *OpenRestyController) Show(ctx http.Context) {
|
|
ctx.Response().Success().Json(http.Json{
|
|
"Hello": "Goravel",
|
|
})
|
|
}
|