mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-22 20:52:27 +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::*,
|
||||
state::State
|
||||
};
|
||||
use gotham_restful::*;
|
||||
use gotham_restful::{cors::*, *};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Resource)]
|
||||
|
@ -101,7 +101,7 @@ fn main() {
|
|||
|
||||
let cors = CorsConfig {
|
||||
origin: Origin::Copy,
|
||||
headers: vec![CONTENT_TYPE],
|
||||
headers: Headers::List(vec![CONTENT_TYPE]),
|
||||
credentials: true,
|
||||
..Default::default()
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue