mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 06:17:55 +00:00
feat(premium): initial subscription implementation through paddle
This commit is contained in:
parent
81cde5e688
commit
226947e6aa
15 changed files with 1121 additions and 144 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{ApiContext, auth::AuthState, error::fail};
|
||||
use crate::{ApiContext, auth::AuthState, fail};
|
||||
use axum::{
|
||||
Extension,
|
||||
extract::{Path, State},
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use sqlx::Postgres;
|
|||
|
||||
use pluralkit_models::{PKDashView, PKSystem, PKSystemConfig, PrivacyLevel};
|
||||
|
||||
use crate::{ApiContext, auth::AuthState, error::fail};
|
||||
use crate::{ApiContext, auth::AuthState, fail};
|
||||
|
||||
#[api_endpoint]
|
||||
pub async fn get_system_settings(
|
||||
|
|
|
|||
|
|
@ -84,15 +84,14 @@ impl IntoResponse for PKError {
|
|||
}
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fail {
|
||||
($($stuff:tt)+) => {{
|
||||
tracing::error!($($stuff)+);
|
||||
return Err(crate::error::GENERIC_SERVER_ERROR);
|
||||
return Err($crate::error::GENERIC_SERVER_ERROR);
|
||||
}};
|
||||
}
|
||||
|
||||
pub(crate) use fail;
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fail_html {
|
||||
($($stuff:tt)+) => {{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue