From 85d77655a515c120e5c0ba3c48c6be4eda1ac8f6 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 12 Apr 2024 20:34:02 +0100 Subject: 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. --- cmd/dbasik-api/routes.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/dbasik-api/routes.go') 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) -- cgit v1.2.3