Delete & Post Game Endpoints. Various other changes
This commit is contained in:
parent
790a7dd8ee
commit
07e6df6b64
8 changed files with 493 additions and 107 deletions
src/v2
|
@ -13,7 +13,7 @@ pub(crate) mod schemas;
|
|||
("api_key" = [])
|
||||
),
|
||||
)]
|
||||
#[get("/empire_ethics")]
|
||||
#[get("/api/v2/empire_ethics")]
|
||||
pub(crate) async fn empire_ethics(
|
||||
data: web::Data<AppState>
|
||||
) -> impl Responder {
|
||||
|
@ -51,7 +51,7 @@ pub(crate) async fn empire_ethics(
|
|||
("api_key" = [])
|
||||
),
|
||||
)]
|
||||
#[get("/empires")]
|
||||
#[get("/api/v2/empires")]
|
||||
pub(crate) async fn empires(
|
||||
data: web::Data<AppState>,
|
||||
params: web::Query<schemas::AuthParams>
|
||||
|
@ -98,7 +98,7 @@ pub(crate) async fn empires(
|
|||
("api_key" = [])
|
||||
),
|
||||
)]
|
||||
#[get("/ethics")]
|
||||
#[get("/api/v2/ethics")]
|
||||
pub(crate) async fn ethics(
|
||||
data: web::Data<AppState>
|
||||
) -> impl Responder {
|
||||
|
@ -132,7 +132,7 @@ pub(crate) async fn ethics(
|
|||
("api_key" = [])
|
||||
),
|
||||
)]
|
||||
#[get("/game_groups")]
|
||||
#[get("/api/v2/game_groups")]
|
||||
pub(crate) async fn game_groups(
|
||||
data: web::Data<AppState>
|
||||
) -> impl Responder {
|
||||
|
@ -166,7 +166,7 @@ pub(crate) async fn game_groups(
|
|||
("api_key" = [])
|
||||
),
|
||||
)]
|
||||
#[get("/games")]
|
||||
#[get("/api/v2/games")]
|
||||
pub(crate) async fn games(
|
||||
data: web::Data<AppState>
|
||||
) -> impl Responder {
|
||||
|
@ -199,7 +199,7 @@ pub(crate) async fn games(
|
|||
("api_key" = [])
|
||||
),
|
||||
)]
|
||||
#[get("/portrait_groups")]
|
||||
#[get("/api/v2/portrait_groups")]
|
||||
pub(crate) async fn portrait_groups(
|
||||
data: web::Data<AppState>
|
||||
) -> impl Responder {
|
||||
|
@ -232,7 +232,7 @@ pub(crate) async fn portrait_groups(
|
|||
("api_key" = [])
|
||||
),
|
||||
)]
|
||||
#[get("/portraits")]
|
||||
#[get("/api/v2/portraits")]
|
||||
pub(crate) async fn portraits(
|
||||
data: web::Data<AppState>
|
||||
) -> impl Responder {
|
||||
|
|
Reference in a new issue