mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-24 18:32:40 +00:00
29 lines
359 B
Rust
29 lines
359 B
Rust
#![feature(plugin)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
extern crate rocket;
|
|
|
|
#[get("/")]
|
|
fn get() { }
|
|
|
|
#[put("/")]
|
|
fn put() { }
|
|
|
|
#[post("/")]
|
|
fn post() { }
|
|
|
|
#[delete("/")]
|
|
fn delete() { }
|
|
|
|
#[head("/")]
|
|
fn head() { }
|
|
|
|
#[patch("/")]
|
|
fn patch() { }
|
|
|
|
// TODO: Allow this once Diesel incompatibility is fixed.
|
|
// #[options("/")]
|
|
// fn options() { }
|
|
|
|
fn main() { }
|