MCPcopy Index your code
hub / github.com/dreamsofcode-io/nethttp / loadRoutes

Function loadRoutes

router.go:9–16  ·  view source on GitHub ↗
(router *http.ServeMux)

Source from the content-addressed store, hash-verified

7)
8
9func loadRoutes(router *http.ServeMux) {
10 handler := &monster.Handler{}
11
12 router.HandleFunc("POST /monster", handler.Create)
13 router.HandleFunc("PUT /monster/{id}", handler.UpdateByID)
14 router.HandleFunc("GET /monster/{id}", handler.FindByID)
15 router.HandleFunc("DELETE /monster/{id}", handler.DeleteByID)
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected