mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
fix example
This commit is contained in:
parent
813c12614f
commit
6ee382242b
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ use gotham::{
|
||||||
router::builder::*,
|
router::builder::*,
|
||||||
state::State
|
state::State
|
||||||
};
|
};
|
||||||
use gotham_restful::*;
|
use gotham_restful::{cors::*, *};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Resource)]
|
#[derive(Resource)]
|
||||||
|
@ -101,7 +101,7 @@ fn main() {
|
||||||
|
|
||||||
let cors = CorsConfig {
|
let cors = CorsConfig {
|
||||||
origin: Origin::Copy,
|
origin: Origin::Copy,
|
||||||
headers: vec![CONTENT_TYPE],
|
headers: Headers::List(vec![CONTENT_TYPE]),
|
||||||
credentials: true,
|
credentials: true,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue