mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
feat(database)!: switch from diesel to sea-orm
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use crate::database::models::User;
|
||||
use crate::extractors::authorized_user;
|
||||
use crate::extractors::base::FromRequestAsync;
|
||||
use actix_web::body::{BoxBody, EitherBody};
|
||||
@@ -7,6 +6,7 @@ use actix_web::{Error, HttpRequest, ResponseError};
|
||||
use futures_util::future::LocalBoxFuture;
|
||||
use std::future::{Ready, ready};
|
||||
use std::rc::Rc;
|
||||
use database::entity::User;
|
||||
|
||||
/// Middleware guard working with JWT tokens.
|
||||
pub struct JWTAuthorization {
|
||||
|
||||
Reference in New Issue
Block a user