mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 11:00:56 +00:00
fix: mod importy
This commit is contained in:
parent
44b4310ddf
commit
9eaf0eb347
3 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ use rocket::request::{self, FromRequest, Request};
|
||||||
use rocket::response::status;
|
use rocket::response::status;
|
||||||
use rocket_contrib::json::Json;
|
use rocket_contrib::json::Json;
|
||||||
|
|
||||||
|
use portfolio_core::token::candidate_token::CandidateToken;
|
||||||
use portfolio_core::token::decode_candidate_token;
|
use portfolio_core::token::decode_candidate_token;
|
||||||
|
|
||||||
impl<'a, 'r> FromRequest<'a, 'r> for UserToken {
|
impl<'a, 'r> FromRequest<'a, 'r> for UserToken {
|
||||||
|
|
|
||||||
1
api/src/guard/mod.rs
Normal file
1
api/src/guard/mod.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod candidate_jwt;
|
||||||
|
|
@ -9,7 +9,10 @@ use portfolio_core::{Mutation};
|
||||||
use migration::{MigratorTrait};
|
use migration::{MigratorTrait};
|
||||||
use sea_orm_rocket::{Connection, Database};
|
use sea_orm_rocket::{Connection, Database};
|
||||||
|
|
||||||
|
|
||||||
mod pool;
|
mod pool;
|
||||||
|
mod guard;
|
||||||
|
|
||||||
use pool::Db;
|
use pool::Db;
|
||||||
|
|
||||||
pub use entity::candidate;
|
pub use entity::candidate;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue