1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

use cors and identity crates

This commit is contained in:
Nikolay Kim
2019-06-17 12:48:03 +06:00
parent c8467d1ffd
commit e7ed6755a5
9 changed files with 13 additions and 14 deletions

View File

@ -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 {