add settings page and api route for generating config.yml

This commit is contained in:
Henry Dollman
2024-10-23 18:30:24 -04:00
parent c7463f2b9f
commit f8f1e01cb4
6 changed files with 203 additions and 9 deletions

View File

@@ -156,6 +156,8 @@ func (h *Hub) Run() {
})
// send test notification
e.Router.GET("/api/beszel/send-test-notification", h.am.SendTestNotification)
// API endpoint to get config.yml content
e.Router.GET("/api/beszel/config-yaml", h.getYamlConfig)
return nil
})