aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dbasik-api/routes.go
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-12 20:34:02 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-12 20:34:02 +0100
commit85d77655a515c120e5c0ba3c48c6be4eda1ac8f6 (patch)
treeb867aca6afc90b6b24859061e67ac63d87f7f860 /cmd/dbasik-api/routes.go
parent89ee67970d350e7381554cf38e464eda80b439ec (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.go1
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)