init
This commit is contained in:
@@ -69,7 +69,10 @@ pub async fn get_by_id(
|
||||
(status = 201, description = "Serveur créé avec succès", body = ServerResponse),
|
||||
(status = 500, description = "Erreur interne du serveur")
|
||||
),
|
||||
tag = "Servers"
|
||||
tag = "Servers",
|
||||
security(
|
||||
("bearerAuth" = [])
|
||||
)
|
||||
)]
|
||||
pub async fn create(
|
||||
_admin: Superuser,
|
||||
@@ -97,7 +100,10 @@ pub async fn create(
|
||||
params(
|
||||
("id" = Uuid, Path, description = "ID du serveur")
|
||||
),
|
||||
tag = "Servers"
|
||||
tag = "Servers",
|
||||
security(
|
||||
("bearerAuth" = [])
|
||||
)
|
||||
)]
|
||||
pub async fn update(
|
||||
_admin: Superuser,
|
||||
@@ -131,7 +137,10 @@ pub async fn update(
|
||||
params(
|
||||
("id" = Uuid, Path, description = "ID du serveur")
|
||||
),
|
||||
tag = "Servers"
|
||||
tag = "Servers",
|
||||
security(
|
||||
("bearerAuth" = [])
|
||||
)
|
||||
)]
|
||||
pub async fn delete(
|
||||
_admin: Superuser,
|
||||
|
||||
Reference in New Issue
Block a user