12 lines
266 B
Python
12 lines
266 B
Python
from pydantic_settings import BaseSettings
|
|
from functools import lru_cache
|
|
|
|
|
|
@lru_cache()
|
|
def get_settings():
|
|
return BaseSettings(
|
|
app_name="API Pedidos",
|
|
database_url="postgresql://user:password@localhost:5432/pedidos",
|
|
debug=True
|
|
)
|