chore(doc): comment channel routes

This commit is contained in:
Paul Makles
2022-03-19 14:14:24 +00:00
parent 14e17b10c0
commit 25a52cbbb1
22 changed files with 229 additions and 42 deletions

View File

@@ -3,11 +3,17 @@ use revolt_quark::{models::User, Ref, Result};
use rocket::serde::json::Value;
use serde::{Deserialize, Serialize};
/// # Token Response
#[derive(Serialize, Deserialize)]
struct CreateUserResponse {
struct CreateVoiceUserResponse {
/// Token for authenticating with the voice server
token: String,
}
/// # Join Call
///
/// Asks the voice server for a token to join the call.
#[openapi(tag = "Voice")]
#[post("/<_target>/join_call")]
pub async fn req(_user: User, _target: Ref) -> Result<Value> {
unimplemented!()