اولین نسخه بک‌اند آرامش پلازا

This commit is contained in:
Behrad
2026-08-27 15:15:12 +03:30
commit 854309f976
26 changed files with 1861 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
from app.crud_router import build_crud_router
from app import models, schemas
services_router = build_crud_router(
prefix="/api/services",
tag="Services",
model=models.Service,
create_schema=schemas.ServiceCreate,
update_schema=schemas.ServiceUpdate,
out_schema=schemas.ServiceOut,
)
stats_router = build_crud_router(
prefix="/api/stats",
tag="Stats",
model=models.Stat,
create_schema=schemas.StatCreate,
update_schema=schemas.StatUpdate,
out_schema=schemas.StatOut,
)
timeline_router = build_crud_router(
prefix="/api/timeline",
tag="Timeline",
model=models.TimelineItem,
create_schema=schemas.TimelineCreate,
update_schema=schemas.TimelineUpdate,
out_schema=schemas.TimelineOut,
)
why_us_router = build_crud_router(
prefix="/api/why-us",
tag="WhyUs",
model=models.WhyUsItem,
create_schema=schemas.WhyUsCreate,
update_schema=schemas.WhyUsUpdate,
out_schema=schemas.WhyUsOut,
)
testimonials_router = build_crud_router(
prefix="/api/testimonials",
tag="Testimonials",
model=models.Testimonial,
create_schema=schemas.TestimonialCreate,
update_schema=schemas.TestimonialUpdate,
out_schema=schemas.TestimonialOut,
)
team_router = build_crud_router(
prefix="/api/team",
tag="Team",
model=models.TeamMember,
create_schema=schemas.TeamMemberCreate,
update_schema=schemas.TeamMemberUpdate,
out_schema=schemas.TeamMemberOut,
)
faqs_router = build_crud_router(
prefix="/api/faqs",
tag="FAQs",
model=models.Faq,
create_schema=schemas.FaqCreate,
update_schema=schemas.FaqUpdate,
out_schema=schemas.FaqOut,
)