Skip to main content

routes

Function routes 

Source
pub fn routes(ctx: PredictCtx) -> Router<()>
Expand description

Build the /api/predict/* router with its own state baked in, returning a state-less Router<()> the host nests at /api/predict behind the App gate.