update
This commit is contained in:
parent
acf5ebae78
commit
0e174dc06e
6 changed files with 53 additions and 16 deletions
|
@ -25,6 +25,8 @@ mod variant;
|
|||
|
||||
#[launch]
|
||||
async fn rocket() -> _ {
|
||||
env_logger::init();
|
||||
|
||||
let cors = rocket_cors::CorsOptions {
|
||||
allowed_origins: rocket_cors::AllowedOrigins::all(),
|
||||
allowed_methods: vec![Method::Get, Method::Post, Method::Options]
|
||||
|
@ -53,7 +55,8 @@ async fn rocket() -> _ {
|
|||
routes::item::demand_route,
|
||||
routes::item::transaction_route,
|
||||
routes::item::inventory_route,
|
||||
routes::item::variant_stat_route
|
||||
routes::item::variant_stat_route,
|
||||
routes::item::unique_field_route
|
||||
],
|
||||
)
|
||||
.manage(itemdb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue