first commit of files

This commit is contained in:
Adrian Zürcher
2025-04-18 10:30:18 +02:00
parent 5595af0add
commit f213f53547
22 changed files with 842 additions and 0 deletions

16
server/routes.go Normal file
View File

@@ -0,0 +1,16 @@
package server
import (
"github.com/gin-gonic/gin"
)
func (s *Server) AddRoutes() {
s.engine.GET("/ws", s.handleWebSocket)
s.engine.GET("/allBuses", s.AllBuses)
s.engine.GET("/", func(c *gin.Context) {
c.String(200, "WebSocket Broadcast Server is running!")
})
}