mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-10-03 16:06:19 +00:00
schema
This commit is contained in:
2 files changed
+17
-17
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user