style: use better function names in server
This commit is contained in:
parent
8fdbf8cc48
commit
b499ff1cf8
6 changed files with 16 additions and 16 deletions
|
@ -10,7 +10,7 @@ struct InviteRequest {
|
|||
}
|
||||
|
||||
#[get("{uuid}/invites")]
|
||||
pub async fn get_invites(req: HttpRequest, path: web::Path<(Uuid,)>, data: web::Data<Data>) -> Result<HttpResponse, Error> {
|
||||
pub async fn get(req: HttpRequest, path: web::Path<(Uuid,)>, data: web::Data<Data>) -> Result<HttpResponse, Error> {
|
||||
let headers = req.headers();
|
||||
|
||||
let auth_header = get_auth_header(headers);
|
||||
|
@ -53,7 +53,7 @@ pub async fn get_invites(req: HttpRequest, path: web::Path<(Uuid,)>, data: web::
|
|||
}
|
||||
|
||||
#[post("{uuid}/invites")]
|
||||
pub async fn create_invite(req: HttpRequest, path: web::Path<(Uuid,)>, invite_request: web::Json<Option<InviteRequest>>, data: web::Data<Data>) -> Result<HttpResponse, Error> {
|
||||
pub async fn create(req: HttpRequest, path: web::Path<(Uuid,)>, invite_request: web::Json<Option<InviteRequest>>, data: web::Data<Data>) -> Result<HttpResponse, Error> {
|
||||
let headers = req.headers();
|
||||
|
||||
let auth_header = get_auth_header(headers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue