An actix app comes with a URL routing system that lets you match on - URLs and invoke individual handlers. For extra flexibility scopes + URLs and invoke individual handlers. For extra flexibility, scopes can be used.
{{ highlight `fn index(req: HttpRequest) -> impl Responder {