Attribute Macro worker_route::get
source · #[get]Expand description
A macro that creates route handler with worker::Router::get_async.
Usage
#[get("path")]
Attributes
"path": Worker’s path.
Examples
use worker::{Result, Response};
use worker_route::get;
#[get("/path")]
async fn foo() -> Result<Response>{
Response::empty()
}