Managed to query VirtWeb API

This commit is contained in:
2024-04-25 18:51:42 +02:00
parent 38e69ea167
commit 48f24e6ca1
7 changed files with 117 additions and 2 deletions

View File

@ -4,6 +4,7 @@ use actix_web::web::Data;
use actix_web::{App, HttpServer};
use light_openid::basic_state_manager::BasicStateManager;
use remote_backend::app_config::AppConfig;
use remote_backend::virtweb_client;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
@ -11,6 +12,8 @@ async fn main() -> std::io::Result<()> {
let state_manager = Data::new(BasicStateManager::new());
println!("{:#?}", virtweb_client::get_token_rights().await.unwrap());
HttpServer::new(move || {
App::new()
.wrap(Logger::default())