hello_api/
hello_api.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![feature(proc_macro_hygiene, decl_macro)]

#[macro_use]
extern crate rocket;
use rocket_lamb::RocketExt;

#[get("/")]
fn hello() -> &'static str {
    "Hello, world!"
}

fn main() {
    rocket::ignite()
        .mount("/hello", routes![hello])
        .lambda()
        .launch();
}