routes

Function routes 

Source
pub fn routes() -> Vec<Route>
Expand description

Get all routes for manual mounting.

Returns a vector of all pre-built routes, allowing you to mount them at a custom path prefix.

§Example

use html2pdf_api::integrations::rocket::routes;

// Mount at root
rocket::build().mount("/", routes())

// Mount at custom prefix
rocket::build().mount("/api/v1", routes())

§Routes Returned