mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
use cors and identity crates
This commit is contained in:
@ -7,4 +7,5 @@ workspace = ".."
|
||||
|
||||
[dependencies]
|
||||
actix-web = "1.0.0"
|
||||
actix-identity = "0.1.0"
|
||||
env_logger = "0.6"
|
||||
|
@ -1,5 +1,5 @@
|
||||
use actix_web::middleware::identity::Identity;
|
||||
use actix_web::middleware::identity::{CookieIdentityPolicy, IdentityService};
|
||||
use actix_identity::Identity;
|
||||
use actix_identity::{CookieIdentityPolicy, IdentityService};
|
||||
use actix_web::{middleware, web, App, HttpResponse, HttpServer};
|
||||
|
||||
fn index(id: Identity) -> String {
|
||||
|
Reference in New Issue
Block a user