fix: mod importy

This commit is contained in:
EETagent 2022-10-25 16:40:29 +02:00
parent 44b4310ddf
commit 9eaf0eb347
3 changed files with 5 additions and 0 deletions

View file

@ -5,6 +5,7 @@ use rocket::request::{self, FromRequest, Request};
use rocket::response::status;
use rocket_contrib::json::Json;
use portfolio_core::token::candidate_token::CandidateToken;
use portfolio_core::token::decode_candidate_token;
impl<'a, 'r> FromRequest<'a, 'r> for UserToken {

1
api/src/guard/mod.rs Normal file
View file

@ -0,0 +1 @@
pub mod candidate_jwt;

View file

@ -9,7 +9,10 @@ use portfolio_core::{Mutation};
use migration::{MigratorTrait};
use sea_orm_rocket::{Connection, Database};
mod pool;
mod guard;
use pool::Db;
pub use entity::candidate;