Skip to main content

set_routes

Function set_routes 

Source
pub fn set_routes(
    file: &Path,
    project_id: &str,
    routes: &[RouteValue],
) -> Result<(), String>
Expand description

Replaces a project’s routes in its file, in place: its other fields and the file’s comments stay. Routes left empty are dropped.