reorganized files
This commit is contained in:
18
src-tauri/src/models/app_config.rs
Normal file
18
src-tauri/src/models/app_config.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
use ts_rs::TS;
|
||||
|
||||
#[derive(Default, Serialize, Deserialize, Clone, Debug, TS)]
|
||||
#[ts(export)]
|
||||
pub struct AuthConfig {
|
||||
pub audience: String,
|
||||
pub auth_url: String,
|
||||
pub redirect_uri: String,
|
||||
pub redirect_host: String,
|
||||
}
|
||||
|
||||
#[derive(Default, Serialize, Deserialize, Clone, Debug, TS)]
|
||||
#[ts(export)]
|
||||
pub struct AppConfig {
|
||||
pub api_base_url: Option<String>,
|
||||
pub auth: AuthConfig,
|
||||
}
|
||||
1
src-tauri/src/models/mod.rs
Normal file
1
src-tauri/src/models/mod.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod app_config;
|
||||
Reference in New Issue
Block a user