about summary refs log tree commit diff
path: root/src/rest-api/cmd
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2024-05-30 19:07:32 +0200
committerBaitinq <[email protected]>2024-05-30 19:07:32 +0200
commitc04f384cdbcdc2359b82de4e9fa6e5685ce9b74e (patch)
treebded35dbae73bb108ea2cdda0938186333f61812 /src/rest-api/cmd
parentmisc: Rename API_KEY env var to FS_TRACER_API_KEY (diff)
downloadfs-tracer-backend-c04f384cdbcdc2359b82de4e9fa6e5685ce9b74e.tar.gz
fs-tracer-backend-c04f384cdbcdc2359b82de4e9fa6e5685ce9b74e.tar.bz2
fs-tracer-backend-c04f384cdbcdc2359b82de4e9fa6e5685ce9b74e.zip
rest-api: change route to /api/v1/file/
Diffstat (limited to 'src/rest-api/cmd')
-rw-r--r--src/rest-api/cmd/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest-api/cmd/main.go b/src/rest-api/cmd/main.go
index 98f3722..ff91856 100644
--- a/src/rest-api/cmd/main.go
+++ b/src/rest-api/cmd/main.go
@@ -63,7 +63,7 @@ func main() {
 	mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
 		fmt.Fprint(w, "Hello folks!")
 	})
-	mux.Handle("/file/", handler)
+	mux.Handle("/api/v1/file/", handler)
 
 	http.ListenAndServe(":8080", mux)
 }