Added doc reference
This commit is contained in:
parent
4194509f45
commit
f7efeef653
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ pub async fn get_initial_setup(db: web::Data<DB>) -> Result<HttpResponse, APIErr
|
||||||
#[put("/settings")]
|
#[put("/settings")]
|
||||||
pub async fn put_settings(
|
pub async fn put_settings(
|
||||||
db: web::Data<DB>,
|
db: web::Data<DB>,
|
||||||
// _admin_rights: AdminRights, // TODO.important
|
// _admin_rights: AdminRights, // TODO.important https://docs.rs/actix-web/2.0.0/actix_web/trait.FromRequest.html
|
||||||
config: web::Json<Config>,
|
config: web::Json<Config>,
|
||||||
) -> Result<HttpResponse, APIError> {
|
) -> Result<HttpResponse, APIError> {
|
||||||
web::block(move || config::amend(&db, &config))
|
web::block(move || config::amend(&db, &config))
|
||||||
|
|
Loading…
Add table
Reference in a new issue