Skip to content

Instantly share code, notes, and snippets.

@dereckson

dereckson/app.rs

Created Sep 5, 2018
Embed
What would you like to do?
Example to run a Rocket server to serve some routes through Limiting Factor.
use limiting_factor::kernel::DefaultApplication;
use requests::*;
pub fn run () {
let routes = routes![
status,
favicon,
users::register,
users::get_player,
];
DefaultApplication::start_application(routes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment