Moved RequestOutcome

This commit is contained in:
Thorsten Sommer 2024-11-05 19:28:52 +01:00
parent 565a3edf30
commit 60585dc8f2
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,8 @@ impl APIToken {
} }
} }
type RequestOutcome<R, T> = rocket::request::Outcome<R, T>;
#[rocket::async_trait] #[rocket::async_trait]
impl<'r> FromRequest<'r> for APIToken { impl<'r> FromRequest<'r> for APIToken {
type Error = APITokenError; type Error = APITokenError;

View File

@ -35,7 +35,6 @@ use mindwork_ai_studio::encryption::{EncryptedText, ENCRYPTION};
use mindwork_ai_studio::environment::{is_dev, is_prod}; use mindwork_ai_studio::environment::{is_dev, is_prod};
use mindwork_ai_studio::log::{init_logging, switch_to_file_logging}; use mindwork_ai_studio::log::{init_logging, switch_to_file_logging};
type RequestOutcome<R, T> = rocket::request::Outcome<R, T>;
// The .NET server is started in a separate process and communicates with this // The .NET server is started in a separate process and communicates with this
// runtime process via IPC. However, we do net start the .NET server in // runtime process via IPC. However, we do net start the .NET server in