18 lines
295 B
Go
18 lines
295 B
Go
package handlers
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
"gopkg.in/yaml.v3"
|
|
)
|
|
|
|
func Ruleset(c *fiber.Ctx) error {
|
|
|
|
body, err := yaml.Marshal(rulesSet)
|
|
if err != nil {
|
|
c.SendStatus(fiber.StatusInternalServerError)
|
|
return c.SendString(err.Error())
|
|
}
|
|
|
|
return c.SendString(string(body))
|
|
}
|