diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-12 20:34:02 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-12 20:34:02 +0100 |
commit | 85d77655a515c120e5c0ba3c48c6be4eda1ac8f6 (patch) | |
tree | b867aca6afc90b6b24859061e67ac63d87f7f860 /cmd/dbasik-api/routes.go | |
parent | 89ee67970d350e7381554cf38e464eda80b439ec (diff) |
First test and first appearance of returns code
Test a function that gets all sheets from a datamap struct.
A new function to handle a datamap and a return together in one POST
request.
Diffstat (limited to 'cmd/dbasik-api/routes.go')
-rw-r--r-- | cmd/dbasik-api/routes.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/dbasik-api/routes.go b/cmd/dbasik-api/routes.go index 3c9e85b..1b02028 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/return", app.createReturnHandler) mux.HandleFunc("POST /v1/datamapsave", app.saveDatamapHandler) mux.HandleFunc("POST /v1/datamap", app.createDatamapHandler) mux.HandleFunc("POST /v1/datamapline", app.createDatamapLine) |