forked from gorb/backend
docs: fix paths in guild comments
This commit is contained in:
parent
e4d9a1b5af
commit
556337aa4e
3 changed files with 6 additions and 6 deletions
|
@ -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 actix_web::{HttpRequest, HttpResponse, Scope, get, post, web};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
@ -21,7 +21,7 @@ pub fn web() -> Scope {
|
||||||
.service(uuid::web())
|
.service(uuid::web())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `POST /api/v1/servers` Creates a new guild
|
/// `POST /api/v1/guilds` Creates a new guild
|
||||||
///
|
///
|
||||||
/// requires auth: yes
|
/// requires auth: yes
|
||||||
///
|
///
|
||||||
|
|
|
@ -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 actix_web::{HttpRequest, HttpResponse, put, web};
|
||||||
use futures_util::StreamExt as _;
|
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
|
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
|
/// requires auth: no
|
||||||
///
|
///
|
||||||
|
|
|
@ -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 actix_web::{HttpRequest, HttpResponse, Scope, get, web};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
@ -30,7 +30,7 @@ pub fn web() -> Scope {
|
||||||
.service(icon::upload)
|
.service(icon::upload)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `GET /api/v1/servers/{uuid}` DESCRIPTION
|
/// `GET /api/v1/guilds/{uuid}` DESCRIPTION
|
||||||
///
|
///
|
||||||
/// requires auth: yes
|
/// requires auth: yes
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue