docs: fix paths in guild comments

This commit is contained in:
Radical 2025-05-29 20:16:29 +02:00
parent e4d9a1b5af
commit 556337aa4e
3 changed files with 6 additions and 6 deletions

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
///