Skip to main content

patch

Attribute Macro patch 

Source
#[patch]
Expand description

Creates a route handler with a PATCH method guard.

Re-exported as ntex::web::patch.

Syntax: #[patch("path"[, guard = "fn_name"]*[, state = Type])]

Works the same way and takes the same arguments as [web_get].