Skip to content

Commit

Permalink
feat(Packages): Adding the purchases realted services to imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gabszs committed Jul 5, 2024
1 parent 778a7e2 commit 6718f5a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Settings(BaseSettings):
base_auth_route: Optional[str] = "/v1/auth"
base_product_route: Optional[str] = "/v1/product"
base_inventory_route: Optional[str] = "/v1/inventory"
base_purchase_route: Optional[str] = "/v1/purchase"


settings = Settings()
3 changes: 2 additions & 1 deletion app/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .api_models import Inventory
from .api_models import Product
from .api_models import Purchase
from .api_models import User
from .base_model import Base

__all__ = ["User", "Product", "Base", "Inventory"]
__all__ = ["User", "Product", "Base", "Inventory", "Purchase"]
3 changes: 2 additions & 1 deletion app/repository/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .inventory_repository import InventoryRepository
from .product_repository import ProductRepository
from .purchase_repository import PurchaseRepository
from .user_repository import UserRepository

__all__ = ["InventoryRepository", "ProductRepository", "UserRepository"]
__all__ = ["InventoryRepository", "ProductRepository", "PurchaseRepository", "UserRepository"]
4 changes: 2 additions & 2 deletions app/routes/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from app.routes.v1.inventory_route import router as inventory_route
from app.routes.v1.ping_route import router as ping_router
from app.routes.v1.product_routes import router as product_router
from app.routes.v1.purchase_route import router as purchase_route
from app.routes.v1.users_routes import router as user_router

routers = APIRouter(prefix="/v1")
router_list = [auth_router, inventory_route, product_router, user_router, ping_router]
router_list = [auth_router, purchase_route, inventory_route, product_router, user_router, ping_router]

for router in router_list:
# router.tags = routers.tags.append("v1")
routers.include_router(router)

__all__ = ["routers"]
3 changes: 2 additions & 1 deletion app/services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .auth_service import AuthService
from .inventory_service import InventoryService
from .product_service import ProductService
from .purchase_service import PurchaseService
from .user_service import UserService

__all__ = ["AuthService", "InventoryService", "ProductService", "UserService"]
__all__ = ["AuthService", "InventoryService", "PurchaseService", "ProductService", "UserService"]

0 comments on commit 6718f5a

Please sign in to comment.