mirror of
https://github.com/v0l/route96.git
synced 2025-06-15 07:56:32 +00:00

* Initial plan for issue * Implement complete payments system with quota enforcement - Add default free allowance configuration (100MB) - Implement quota checking before uploads in both blossom and nip96 routes - Add comprehensive quota checking functions in database module - Enhance admin API to show quota information - Add payment processing infrastructure - Include all necessary database migrations Users now get 100MB free storage + any valid paid storage. Uploads are rejected when quota would be exceeded. * Move free_quota_bytes to PaymentConfig and restore mime_type parameter Co-authored-by: v0l <1172179+v0l@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: v0l <1172179+v0l@users.noreply.github.com>
19 lines
373 B
Rust
19 lines
373 B
Rust
#[cfg(feature = "analytics")]
|
|
pub mod analytics;
|
|
pub mod auth;
|
|
pub mod background;
|
|
pub mod cors;
|
|
pub mod db;
|
|
pub mod filesystem;
|
|
#[cfg(feature = "payments")]
|
|
pub mod payments;
|
|
#[cfg(feature = "media-compression")]
|
|
pub mod processing;
|
|
pub mod routes;
|
|
pub mod settings;
|
|
pub mod void_file;
|
|
|
|
pub fn can_compress(mime_type: &str) -> bool {
|
|
mime_type.starts_with("image/")
|
|
}
|