Skip to content

Commit

Permalink
Proxy quota API reset_at field (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
calyptobai committed Sep 11, 2023
1 parent 23156dd commit fe1cfe1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/bleep/src/webserver/quota.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use axum::{Extension, Json};
use chrono::{DateTime, Utc};
use reqwest::StatusCode;
use secrecy::ExposeSecret;

Expand All @@ -11,6 +12,7 @@ pub struct QuotaResponse {
upgraded: bool,
used: u32,
allowed: u32,
reset_at: DateTime<Utc>,
}

pub async fn get(app: Extension<Application>) -> super::Result<Json<QuotaResponse>> {
Expand Down

0 comments on commit fe1cfe1

Please sign in to comment.