Skip to content

Commit

Permalink
insert_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed Apr 10, 2024
1 parent 035261a commit 52d1aae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
from .insert_baby_nurse import router as insert_baby_nurse_router
from .reminder import router as reminder_router
from .get_client_by_room_number import router as get_client_by_room_number_router
from .IMS.product import router as product_router
from .IMS.product import router as product_router
from insert_client import router as insert_client_router
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from api import (change_room_router, reserve_router, get_all_rooms_router, check_in_router,
check_out_router, get_room_by_room_name_router, get_all_clients_router,
fault_registration_router, get_baby_nurse_router, insert_baby_nurse_router,
reminder_router, get_client_by_room_number_router, product_router)
reminder_router, get_client_by_room_number_router, product_router, insert_client_router)
from fastapi.middleware.cors import CORSMiddleware

model.Base.metadata.create_all(bind=engine)
Expand All @@ -36,6 +36,7 @@
app.include_router(reminder_router)
app.include_router(get_client_by_room_number_router)
app.include_router(product_router)
app.include_router(insert_client_router)

origins = [
"*"
Expand Down

0 comments on commit 52d1aae

Please sign in to comment.