You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
344 B

#[macro_use]
extern crate rocket;
#[!feature(
use melly_valentines::choose_saying::choose_saying;
use std::lazy::OnceCell;
static sayings = OnceCell::new();
#[get("/")]
fn a() -> String {
return choose_saying(sayings.get().expect("Could not get sayings list."));
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![a])
}