mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 03:54:54 +08:00
Bundle and serve admin (#317)
* WIP with admin bundling * Current state of the admin is bundled * Update admin bundler to work with binary bundling * Log detail about the admin interface. Closes #312 * Move bundle script to the build dir * Update to current version of admin * Commit updated API documentation Co-authored-by: Owncast <owncast@owncast.online>
This commit is contained in:
@ -19,6 +19,9 @@ func Start() error {
|
||||
// static files
|
||||
http.HandleFunc("/", controllers.IndexHandler)
|
||||
|
||||
// admin static files
|
||||
http.HandleFunc("/admin/", middleware.RequireAdminAuth(admin.ServeAdmin))
|
||||
|
||||
// status of the system
|
||||
http.HandleFunc("/api/status", controllers.GetStatus)
|
||||
|
||||
@ -76,7 +79,7 @@ func Start() error {
|
||||
|
||||
port := config.Config.GetPublicWebServerPort()
|
||||
|
||||
log.Infof("Web server running on port: %d", port)
|
||||
log.Tracef("Web server running on port: %d", port)
|
||||
|
||||
return http.ListenAndServe(fmt.Sprintf(":%d", port), nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user