feature: add optional context to handlers #19
|
@ -12,6 +12,6 @@ import (
|
||||||
// If required, set api.Ctx as the first argument of your handler; if you
|
// If required, set api.Ctx as the first argument of your handler; if you
|
||||||
// don't need it, only use standard input arguments and it will be ignored
|
// don't need it, only use standard input arguments and it will be ignored
|
||||||
type Ctx struct {
|
type Ctx struct {
|
||||||
w http.ResponseWriter
|
Res http.ResponseWriter
|
||||||
r *http.Request
|
Req *http.Request
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue