aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/api/routes.go
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-03-13 17:11:56 +0000
committerMatthew Lemon <y@yulqen.org>2024-03-13 17:11:56 +0000
commitf7fb4eb103df9122eacebc21f57fe53b037fe082 (patch)
tree6b5c897d36ad3c416a7287a1d951c607f460aeae /cmd/api/routes.go
parent033a6e69a473e44ccb7cd66295532846768af114 (diff)
Handler for creating a datamapLine object
Diffstat (limited to 'cmd/api/routes.go')
-rw-r--r--cmd/api/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/api/routes.go b/cmd/api/routes.go
index acf13d0..90e7403 100644
--- a/cmd/api/routes.go
+++ b/cmd/api/routes.go
@@ -8,6 +8,7 @@ func (app *application) routes() *http.ServeMux {
mux.HandleFunc("GET /v1/healthcheck", app.healthcheckHandler)
mux.HandleFunc("POST /v1/datamaps", app.createDatamapHandler)
+ mux.HandleFunc("POST /v1/datamapline", app.createDatamapLine)
mux.HandleFunc("GET /v1/datamaps/{id}", app.showDatamapHandler)
return mux
}