Skip to main content

mount

Function mount 

Source
pub fn mount(router: &mut Router, info: &Info, path: &str)
Expand description

The routes that serve the document and the documentation page.

Registered after the application’s own routes, because a document generated before them would describe an empty API. That ordering is why this is a function the App calls at the end rather than a plugin: a plugin cannot see what is registered after it.