mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 23:07:01 +00:00
a whole bunch of tests for the method macros
This commit is contained in:
parent
4bf0bd7b09
commit
e05f9bb963
23 changed files with 473 additions and 28 deletions
|
@ -76,14 +76,14 @@ fn update(id : u64, body : User)
|
|||
info!("Change User {} to {}", id, body.username);
|
||||
}
|
||||
|
||||
#[delete_all(Users)]
|
||||
fn delete_all()
|
||||
#[remove_all(Users)]
|
||||
fn remove_all()
|
||||
{
|
||||
info!("Delete all Users");
|
||||
}
|
||||
|
||||
#[delete(Users)]
|
||||
fn delete(id : u64)
|
||||
#[remove(Users)]
|
||||
fn remove(id : u64)
|
||||
{
|
||||
info!("Delete User {}", id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue