2016-12-30 06:50:30 +00:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(rocket_codegen)]
|
|
|
|
|
|
|
|
extern crate rocket;
|
|
|
|
|
2016-12-30 07:46:47 +00:00
|
|
|
#[get("/")] fn get() { }
|
|
|
|
#[route(GET, "/")] fn get_r() { }
|
2016-12-30 06:50:30 +00:00
|
|
|
|
2016-12-30 07:46:47 +00:00
|
|
|
#[put("/")] fn put() { }
|
|
|
|
#[route(PUT, "/")] fn put_r() { }
|
2016-12-30 06:50:30 +00:00
|
|
|
|
2016-12-30 07:46:47 +00:00
|
|
|
#[post("/")] fn post() { }
|
|
|
|
#[route(POST, "/")] fn post_r() { }
|
2016-12-30 06:50:30 +00:00
|
|
|
|
2016-12-30 07:46:47 +00:00
|
|
|
#[delete("/")] fn delete() { }
|
|
|
|
#[route(DELETE, "/")] fn delete_r() { }
|
2016-12-30 06:50:30 +00:00
|
|
|
|
2016-12-30 07:46:47 +00:00
|
|
|
#[head("/")] fn head() { }
|
|
|
|
#[route(HEAD, "/")] fn head_r() { }
|
2016-12-30 06:50:30 +00:00
|
|
|
|
2016-12-30 07:46:47 +00:00
|
|
|
#[patch("/")] fn patch() { }
|
|
|
|
#[route(PATCH, "/")] fn patch_r() { }
|
2016-12-30 06:50:30 +00:00
|
|
|
|
|
|
|
// TODO: Allow this once Diesel incompatibility is fixed.
|
2016-12-30 07:46:47 +00:00
|
|
|
// #[options("/")] fn options() { }
|
|
|
|
#[route(OPTIONS, "/")] fn options_r() { }
|
2016-12-30 06:50:30 +00:00
|
|
|
|
|
|
|
fn main() { }
|