aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-12 16:07:41 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-12 16:07:41 +0100
commit89ee67970d350e7381554cf38e464eda80b439ec (patch)
tree2be627da02e4c7efa511eaca0737ce7d8ae6cc36
parent6893605cb27257758bb0aa14bbf56ba220452e4d (diff)
Completion of stateless API for datamap create
-rw-r--r--cmd/dbasik-api/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/dbasik-api/routes.go b/cmd/dbasik-api/routes.go
index 0cc78a9..3c9e85b 100644
--- a/cmd/dbasik-api/routes.go
+++ b/cmd/dbasik-api/routes.go
@@ -25,6 +25,7 @@ func (app *application) routes() *http.ServeMux {
mux.HandleFunc("GET /v1/healthcheck", app.healthcheckHandler)
mux.HandleFunc("GET /v1/getdatamap/{id}", app.getJSONForDatamap) // TODO: not yet implemented
+ mux.HandleFunc("POST /v1/datamapsave", app.saveDatamapHandler)
mux.HandleFunc("POST /v1/datamap", app.createDatamapHandler)
mux.HandleFunc("POST /v1/datamapline", app.createDatamapLine)
mux.HandleFunc("GET /v1/datamaps/{id}", app.showDatamapHandler)