Implement control panel
This commit is contained in:
@@ -44,6 +44,7 @@ func NewWebServer(db *clover.DB, port int, adminPassword string) *WebServer {
|
||||
|
||||
func (ws *WebServer) Start() error {
|
||||
http.HandleFunc("/", ws.IndexHandler)
|
||||
http.HandleFunc("/cp", ws.ControlPanelHandler)
|
||||
http.HandleFunc("/login", ws.LoginHandler)
|
||||
http.HandleFunc("/logout", ws.LogoutHandler)
|
||||
http.HandleFunc("/shares", ws.SharesHandler)
|
||||
|
||||
Reference in New Issue
Block a user