1
0
Fork 0
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:
Dominic 2021-01-01 17:43:43 +01:00
parent 813c12614f
commit 6ee382242b
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -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()
};