Registry / web-framework / ntex-router

ntex-router

JSON →
library1.0.0rscratesunverified

Path router for the ntex web framework.

# Cargo.toml [dependencies] ntex-router = "1.0.0"
INSTALL
IMPORT
SIG · NTEX-ROUTER
N
ntex-router
web-frameworkrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Router
use ntex_router::Router;

Create a router and add a GET route.

use ntex_router::Router; fn main() { let mut router = Router::new(); router.get("/hello", |_| async { "Hello" }); }
Debug
Known issues
gotchaRequires the `ntex` runtime for async handlers.
fix
Use `ntex::rt::System` or run within an ntex application.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
ntex-router — cargo add ntex-router · libregistry