API Pedidos - Estructura + Modelos
This commit is contained in:
0
app/core/__init__.py
Normal file
0
app/core/__init__.py
Normal file
11
app/core/config.py
Normal file
11
app/core/config.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user