feat: add getting computer data route

This commit is contained in:
trafficlunar 2024-11-29 18:06:28 +00:00
parent 840e584082
commit 58adca9cd0
4 changed files with 34 additions and 0 deletions

View file

@ -42,6 +42,7 @@ func NewRouter() {
r.Get("/currently-playing", handler.HandleGetCurrentlyPlaying)
r.Get("/status", handler.HandleGetStatus)
r.Get("/computer", handler.HandleComputerGraphData)
r.Get("/ws/computer", handler.HandleComputerWebSocket)
port := os.Getenv("PORT")