router and fix backend cors
This commit is contained in:
@@ -42,11 +42,17 @@ class RefreshToken(BaseModel):
|
||||
expire_days: int
|
||||
|
||||
|
||||
class CorsSettings(BaseModel):
|
||||
production: str
|
||||
local: list[str] = ["http://localhost:5173", "http://localhost:5174"]
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
api: ApiPrefix = ApiPrefix()
|
||||
db: DbSettings = DbSettings()
|
||||
access_token: AccessToken
|
||||
refresh_token: RefreshToken
|
||||
cors_settings: CorsSettings
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=".env", env_file_encoding="utf-8", env_nested_delimiter="__"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user