Skip to content

Commit c2ef84c

Browse files
committed
feat: Add JWT-based authentication and authorization module with a frontend asset proxy handler.
1 parent bc9055f commit c2ef84c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/src/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ where
382382

383383
// Check if token is blacklisted
384384
let pool = DbPool::from_ref(state);
385-
let is_blacklisted = repositories::token_blacklist::is_token_blacklisted(&pool, &token)
385+
let is_blacklisted = crate::repositories::token_blacklist::is_token_blacklisted(&pool, &token)
386386
.await
387387
.map_err(|e| {
388388
tracing::error!("Database error checking token blacklist: {}", e);

backend/src/handlers/frontend_proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub async fn serve_index(State(pool): State<db::DbPool>) -> impl IntoResponse {
3030
};
3131

3232
// Fetch site meta from DB
33-
let site_meta = match repositories::content::fetch_site_content_by_section(&pool, "site_meta").await {
33+
let site_meta = match crate::repositories::content::fetch_site_content_by_section(&pool, "site_meta").await {
3434
Ok(Some(record)) => {
3535
match serde_json::from_str::<serde_json::Value>(&record.content_json) {
3636
Ok(json) => json,

0 commit comments

Comments
 (0)