aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dbasik-api/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dbasik-api/routes.go')
-rw-r--r--cmd/dbasik-api/routes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dbasik-api/routes.go b/cmd/dbasik-api/routes.go
index f884855..0cc78a9 100644
--- a/cmd/dbasik-api/routes.go
+++ b/cmd/dbasik-api/routes.go
@@ -24,7 +24,8 @@ func (app *application) routes() *http.ServeMux {
mux := http.NewServeMux()
mux.HandleFunc("GET /v1/healthcheck", app.healthcheckHandler)
- mux.HandleFunc("POST /v1/datamaps", app.createDatamapHandler)
+ mux.HandleFunc("GET /v1/getdatamap/{id}", app.getJSONForDatamap) // TODO: not yet implemented
+ mux.HandleFunc("POST /v1/datamap", app.createDatamapHandler)
mux.HandleFunc("POST /v1/datamapline", app.createDatamapLine)
mux.HandleFunc("GET /v1/datamaps/{id}", app.showDatamapHandler)
return mux