feat: add gacha service

This commit is contained in:
Maulana Sodiqin
2025-04-07 00:50:57 +07:00
parent 4f870ec4c9
commit eb05ea5994
30 changed files with 319 additions and 252 deletions
+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