mirror of
https://github.com/hanzoai/core-networkmanagement.git
synced 2026-09-30 20:56:28 +00:00
24 lines
378 B
Go
24 lines
378 B
Go
package root
|
|
|
|
import (
|
|
"core-networkmanager/frontend/plugins"
|
|
"net/http"
|
|
|
|
"github.com/labstack/echo"
|
|
)
|
|
|
|
func setup() bool {
|
|
plugins.RegisterEndpoint(plugins.GET, "/", homePage)
|
|
return true
|
|
}
|
|
|
|
//Page struct to hold per-page data
|
|
type page struct {
|
|
Location string
|
|
Name string
|
|
}
|
|
|
|
func homePage(c echo.Context) error {
|
|
return c.String(http.StatusOK, "Hello, World!")
|
|
}
|