feat: add gacha service

This commit is contained in:
Maulana Sodiqin committed 2025-04-07 00:50:57 +07:00
1 parent 4f870ec4c9
commit eb05ea5994
30 files changed
+319 -252

No files matched your search

+6 -1
View File
@@ -52,12 +52,17 @@ pub fn cors_middleware() -> CorsLayer {
let cors_origins = match env.rust_env.as_str() {
"development" => vec!["http://localhost:3000"],
"production" => {
vec!["https://gacha.imphnen.dev", "https://imphnen.dev"]
vec![
"https://gacha.imphnen.dev",
"https://imphnen.dev",
"https://dimentorin.imphnen.dev",
]
}
_ => vec![
"http://localhost:3000",
"https://gacha.imphnen.dev",
"https://imphnen.dev",
"https://dimentorin.imphnen.dev",
],
};
let allowed_origins: Vec<HeaderValue> = cors_origins