diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-10 20:54:12 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-10 20:54:12 +0100 |
commit | 24d51e78c462fdb829b10747eac470fc80e6fdce (patch) | |
tree | e225dc9d3bb3c9ae6f8efe0b9fd880cba4146770 /cmd/dbasik-api/routes.go | |
parent | e69391d4f309f6268440632585bbddf3a2a5bd60 (diff) |
Adds ability to save a single datamap to the database
Diffstat (limited to 'cmd/dbasik-api/routes.go')
-rw-r--r-- | cmd/dbasik-api/routes.go | 3 |
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 |