creating response json

This commit is contained in:
Colin McKechney
2023-04-30 16:25:57 -04:00
parent 82b4be1ba1
commit ec08c12780
2 changed files with 44 additions and 20 deletions

View File

@@ -20,7 +20,6 @@ struct Login {
#[actix_web::main]
async fn main() -> std::io::Result<()> {
//init logging system
let env = Env::default().filter_or("LOG_LEVEL", "info");
env_logger::init_from_env(env);
@@ -36,6 +35,7 @@ async fn main() -> std::io::Result<()> {
.allowed_methods(vec!["GET","POST","DELETE"])
.supports_credentials()
.allow_any_header()
.expose_any_header()
)
.wrap(IdentityMiddleware::default())
.wrap(SessionMiddleware::new(CookieSessionStore::default(), secret_key.clone()))