mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 21:12:28 +00:00
16 lines
211 B
Rust
16 lines
211 B
Rust
|
#[macro_use] extern crate gotham_restful;
|
||
|
use gotham_restful::State;
|
||
|
|
||
|
#[derive(Resource)]
|
||
|
#[resource(read_all)]
|
||
|
struct FooResource;
|
||
|
|
||
|
#[read_all(FooResource)]
|
||
|
async fn read_all(state : &State)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
fn main()
|
||
|
{
|
||
|
}
|