mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 23:11:02 +00:00
14 lines
338 B
Rust
14 lines
338 B
Rust
|
use canapi::Endpoint;
|
||
|
|
||
|
#[derive(Clone, Default, Serialize, Deserialize)]
|
||
|
pub struct AppEndpoint {
|
||
|
pub id: Option<i32>,
|
||
|
pub name: Option<String>,
|
||
|
pub website: Option<String>,
|
||
|
pub redirect_uri: Option<String>,
|
||
|
pub client_id: Option<String>,
|
||
|
pub client_secret: Option<String>,
|
||
|
}
|
||
|
|
||
|
api!("/api/v1/apps" => AppEndpoint);
|