feat: add new encoder and restructure project

This commit is contained in:
2025-07-22 21:55:45 +00:00
parent e82bb94d7f
commit e72aad0582
20 changed files with 143 additions and 75 deletions

16
app/config.py Normal file
View File

@@ -0,0 +1,16 @@
from pydantic_settings import BaseSettings
from typing import Literal
class Settings(BaseSettings):
database_url: str
environment: Literal["dev", "stage", "prod"]
hashids_salt: str
encoder_alphabet: str
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
# Singleton instance of settings
settings = Settings()