Path style changes #19

Merged
radical merged 7 commits from wip/style-changes into main 2025-05-30 17:18:41 +00:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit 556337aa4e - Show all commits

View file

@ -1,4 +1,4 @@
//! `/api/v1/servers` Guild related endpoints
//! `/api/v1/guilds` Guild related endpoints
use actix_web::{HttpRequest, HttpResponse, Scope, get, post, web};
use serde::Deserialize;
@ -21,7 +21,7 @@ pub fn web() -> Scope {
.service(uuid::web())
}
/// `POST /api/v1/servers` Creates a new guild
/// `POST /api/v1/guilds` Creates a new guild
///
/// requires auth: yes
///

View file

@ -1,4 +1,4 @@
//! `/api/v1/servers/{uuid}/icon` icon related endpoints, will probably be replaced by a multipart post to above endpoint
//! `/api/v1/guilds/{uuid}/icon` icon related endpoints, will probably be replaced by a multipart post to above endpoint
use actix_web::{HttpRequest, HttpResponse, put, web};
use futures_util::StreamExt as _;
@ -8,7 +8,7 @@ use crate::{
api::v1::auth::check_access_token, error::Error, structs::{Guild, Member}, utils::{get_auth_header, global_checks}, Data
};
/// `PUT /api/v1/servers/{uuid}/icon` Icon upload
/// `PUT /api/v1/guilds/{uuid}/icon` Icon upload
///
/// requires auth: no
///

View file

@ -1,4 +1,4 @@
//! `/api/v1/servers/{uuid}` Specific server endpoints
//! `/api/v1/guilds/{uuid}` Specific server endpoints
use actix_web::{HttpRequest, HttpResponse, Scope, get, web};
use uuid::Uuid;
@ -30,7 +30,7 @@ pub fn web() -> Scope {
.service(icon::upload)
}
/// `GET /api/v1/servers/{uuid}` DESCRIPTION
/// `GET /api/v1/guilds/{uuid}` DESCRIPTION
///
/// requires auth: yes
///