Service for editing/creating recipe
Other stuff...
This commit is contained in:
parent
adcf4a5a5d
commit
cc2e5b6893
15 changed files with 323 additions and 146 deletions
|
|
@ -1,22 +1,12 @@
|
|||
use actix_web::{
|
||||
cookie::Cookie,
|
||||
get,
|
||||
http::{header, header::ContentType, StatusCode},
|
||||
post, put, web, HttpMessage, HttpRequest, HttpResponse, Responder,
|
||||
};
|
||||
use chrono::Duration;
|
||||
use futures::TryFutureExt;
|
||||
use log::{debug, error, info, log_enabled, Level};
|
||||
use ron::de::from_bytes;
|
||||
use serde::Deserialize;
|
||||
|
||||
use super::Result;
|
||||
use crate::config::Config;
|
||||
use crate::consts;
|
||||
use crate::data::{asynchronous, db};
|
||||
use crate::model;
|
||||
use crate::user::User;
|
||||
use crate::utils;
|
||||
|
||||
#[put("/ron-api/recipe/set-title")]
|
||||
pub async fn set_recipe_title(
|
||||
|
|
@ -43,3 +33,15 @@ pub async fn set_recipe_description(
|
|||
.await?;
|
||||
Ok(HttpResponse::Ok().finish())
|
||||
}
|
||||
|
||||
// #[put("/ron-api/recipe/add-image)]
|
||||
// #[put("/ron-api/recipe/rm-photo")]
|
||||
// #[put("/ron-api/recipe/add-ingredient")]
|
||||
// #[put("/ron-api/recipe/rm-ingredient")]
|
||||
// #[put("/ron-api/recipe/set-ingredients-order")]
|
||||
// #[put("/ron-api/recipe/add-group")]
|
||||
// #[put("/ron-api/recipe/rm-group")]
|
||||
// #[put("/ron-api/recipe/set-groups-order")]
|
||||
// #[put("/ron-api/recipe/add-step")]
|
||||
// #[put("/ron-api/recipe/rm-step")]
|
||||
// #[put("/ron-api/recipe/set-steps-order")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue