blob: 90e740311a861d5e7adc6ef6bee1e422302b6a5d (
plain) (
tree)
|
|
package main
import "net/http"
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("POST /v1/datamapline", app.createDatamapLine)
mux.HandleFunc("GET /v1/datamaps/{id}", app.showDatamapHandler)
return mux
}
|