1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-07-07 16:22:48 +00:00

Can get current admin id

This commit is contained in:
2021-05-11 17:17:52 +02:00
parent d8ec093786
commit ef0845f075
8 changed files with 70 additions and 4 deletions

View File

@ -0,0 +1,18 @@
//! # Admin ID API
//!
//! @author Pierre Hubert
use serde::Serialize;
use crate::data::admin::AdminID;
#[derive(Serialize)]
pub struct AdminIDAPI {
id: u64,
}
impl AdminIDAPI {
pub fn new(id: AdminID) -> Self {
Self { id: id.id() }
}
}

View File

@ -3,4 +3,5 @@
//! @author Pierre Hubert
pub mod admin_auth_options;
pub mod admin_auth_success;
pub mod admin_auth_success;
pub mod admin_id_api;