Add IP field, ping service, status endpoint and UI; update README
This commit is contained in:
@ -65,12 +65,13 @@ func main() {
|
||||
r.PUT("/api/pcs/:id", pcHandler.UpdatePC)
|
||||
r.DELETE("/api/pcs/:id", pcHandler.DeletePC)
|
||||
r.POST("/api/pcs/:id/wake", pcHandler.WakePC)
|
||||
r.GET("/api/pcs/status", pcHandler.GetPCStatus)
|
||||
|
||||
// Server starten
|
||||
serverAddr := fmt.Sprintf(":%d", port)
|
||||
log.Printf("Server startet auf Port %d...", port)
|
||||
log.Printf("Web-Oberfläche verfügbar unter: http://localhost%s", serverAddr)
|
||||
|
||||
|
||||
if err := r.Run(serverAddr); err != nil {
|
||||
log.Fatal("Fehler beim Starten des Servers:", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user