Compare commits
No commits in common. "4b9c8623f8e3b4f6abe5089a09be01c07e6ae130" and "0fe63dff1b4c7fb06ce3e0ba9f5879a32f09ed1d" have entirely different histories.
4b9c8623f8
...
0fe63dff1b
2 changed files with 0 additions and 14 deletions
|
@ -101,17 +101,4 @@ impl LicenseController {
|
||||||
.map_err(ErrorInternalServerError)?;
|
.map_err(ErrorInternalServerError)?;
|
||||||
Ok(HttpResponse::Ok().finish())
|
Ok(HttpResponse::Ok().finish())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn delete_group(
|
|
||||||
state: web::Data<AppState>,
|
|
||||||
path: Path<Uuid>,
|
|
||||||
_executor: AuthedUser,
|
|
||||||
) -> actix_web::Result<impl Responder> {
|
|
||||||
let db = &state.db;
|
|
||||||
entity::license_group::Entity::delete_by_id(path.into_inner())
|
|
||||||
.exec(db)
|
|
||||||
.await
|
|
||||||
.map_err(ErrorInternalServerError)?;
|
|
||||||
Ok(HttpResponse::Ok().finish())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,6 @@ pub fn config(cfg: &mut web::ServiceConfig) {
|
||||||
.put(LicenseController::update_license),
|
.put(LicenseController::update_license),
|
||||||
)
|
)
|
||||||
.route("/groups", web::post().to(LicenseController::create_group))
|
.route("/groups", web::post().to(LicenseController::create_group))
|
||||||
.service(web::resource("/groups/{group_id}").delete(LicenseController::delete_group))
|
|
||||||
.service(web::scope("/auth").route("/login", web::post().to(AuthController::login))),
|
.service(web::scope("/auth").route("/login", web::post().to(AuthController::login))),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue