feat: add PATCH method to Kite and Group

- Add PATCH(path, handler, ...middleware) on Kite for top-level routes
- Add PATCH(path, handler, ...middleware) on Group for nested routes
This commit is contained in:
2026-05-23 18:38:38 +02:00
parent ae5d1f610a
commit a885597422
2 changed files with 8 additions and 0 deletions

View File

@@ -227,6 +227,10 @@ func (k *Kite) OPTIONS(path string, h Handler, mws ...Middleware) {
k.handle(http.MethodOptions, path, h, mws...)
}
func (k *Kite) PATCH(path string, h Handler, mws ...Middleware) {
k.handle(http.MethodPatch, path, h, mws...)
}
func (k *Kite) POST(path string, h Handler, mws ...Middleware) {
k.handle(http.MethodPost, path, h, mws...)
}