server: Add a route to list recipes
This commit is contained in:
parent
69197a3852
commit
80e3d7ee86
3 changed files with 25 additions and 2 deletions
|
|
@ -96,3 +96,8 @@ pub struct CreateRecipeRequest {
|
|||
pub struct CreateRecipeResponse {
|
||||
pub id: i64,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct ListRecipesResponse {
|
||||
pub recipes: Vec<(i64, String)>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue