mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: add getting computer data route
This commit is contained in:
parent
840e584082
commit
58adca9cd0
4 changed files with 34 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue