MCPcopy Create free account
hub / github.com/egonelbre/exp / GetUsers

Method GetUsers

site_test/api/users.go:11–21  ·  view source on GitHub ↗
(c echo.Context)

Source from the content-addressed store, hash-verified

9)
10
11func (server *Server) GetUsers(c echo.Context) error {
12 ctx := c.Request().Context()
13
14 users, err := server.users.Get(ctx)
15 if err != nil {
16 return err
17 }
18
19 c.JSON(http.StatusOK, users)
20 return nil
21}
22
23func (server *Server) CreateUser(c echo.Context) error {
24 ctx := c.Request().Context()

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected