Skip to main content

query

Attribute Macro query 

Source
#[query]
Expand description

Creates a route handler with a QUERY method guard.

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

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

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