✨ CLI Server CRUD
This commit is contained in:
14
pkg/administration/connectivity.go
Normal file
14
pkg/administration/connectivity.go
Normal file
@ -0,0 +1,14 @@
|
||||
package administration
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func responseConnectivity(c *fiber.Ctx) error {
|
||||
return c.
|
||||
Status(fiber.StatusOK).
|
||||
SendString(fmt.Sprintf("Hello from RoadSign v%s", roadsign.AppVersion))
|
||||
}
|
@ -35,6 +35,11 @@ func InitAdministration() *fiber.App {
|
||||
},
|
||||
}))
|
||||
|
||||
cgi := app.Group("/cgi").Name("CGI")
|
||||
{
|
||||
cgi.All("/connectivity", responseConnectivity)
|
||||
}
|
||||
|
||||
webhooks := app.Group("/webhooks").Name("WebHooks")
|
||||
{
|
||||
webhooks.Put("/publish/:site/:upstream", doPublish)
|
||||
|
Reference in New Issue
Block a user