mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Hardware status admin api (#218)
* Add metrics for disk usage * Add admin API for hardware metrics * Fix error message alert
This commit is contained in:
@ -66,6 +66,9 @@ func Start() error {
|
||||
// Get viewer count over time
|
||||
http.HandleFunc("/api/admin/viewersOverTime", middleware.RequireAdminAuth(admin.GetViewersOverTime))
|
||||
|
||||
// Get hardware stats
|
||||
http.HandleFunc("/api/admin/hardwarestats", middleware.RequireAdminAuth(admin.GetHardwareStats))
|
||||
|
||||
port := config.Config.GetPublicWebServerPort()
|
||||
|
||||
log.Infof("Web server running on port: %d", port)
|
||||
|
||||
Reference in New Issue
Block a user