This commit is contained in:
Greg Burri 2023-04-10 09:35:10 +02:00
parent e7d2f8f6c7
commit 57d7e7a3ce
17 changed files with 608 additions and 500 deletions

View file

@ -18,7 +18,7 @@ use crate::{
email, model, utils,
};
mod api;
pub mod webapi;
///// UTILS /////
@ -255,7 +255,6 @@ pub async fn edit_recipe(
#[get("/recipe/new")]
pub async fn new_recipe(
req: HttpRequest,
path: web::Path<(i64,)>,
connection: web::Data<db::Connection>,
) -> Result<HttpResponse> {
let user = match get_current_user(&req, connection.clone()).await {