server/pkg/modules/user/handlers/users.go

16 lines
270 B
Go

package users
import (
"fmt"
"github.com/valyala/fasthttp"
)
func GetUsers(ctx *fasthttp.RequestCtx) {
fmt.Fprintf(ctx, "hello, %s!\n", ctx.UserValue("name"))
}
func PostUsers(ctx *fasthttp.RequestCtx) {
fmt.Fprintf(ctx, "hello, %s!\n", ctx.UserValue("name"))
}