This commit is contained in:
2025-07-14 11:48:20 -04:00
parent 2fb324c240
commit d480c7b475
2 changed files with 17 additions and 17 deletions
+4
View File
@@ -128,6 +128,10 @@ func main() {
http.Handle("/", http.FileServer(http.Dir("./static")))
http.HandleFunc("/schema.proto", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "./proto/schema.proto")
})
http.HandleFunc("/api", func(w http.ResponseWriter, r *http.Request) {
vehicles, err := getVehicles()
if err != nil {