feat(hosting): add HostWizard platform module and fix migration chain
Some checks failed
Some checks failed
- Add complete hosting module (models, routes, schemas, services, templates, migrations) - Add HostWizard platform to init_production seed (code=hosting, domain=hostwizard.lu) - Fix cms_002 migration down_revision to z_unique_subdomain_domain - Fix prospecting_001 migration to chain after cms_002 (remove branch label) - Add hosting/prospecting version_locations to alembic.ini - Fix admin_services delete endpoint to use proper response model - Add hostwizard.lu to deployment docs (DNS, Caddy, Cloudflare) - Add hosting and prospecting user journey docs to mkdocs nav Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,7 @@ from app.api.deps import get_current_admin_api
|
||||
from app.core.database import get_db
|
||||
from app.modules.hosting.schemas.client_service import (
|
||||
ClientServiceCreate,
|
||||
ClientServiceDeleteResponse,
|
||||
ClientServiceResponse,
|
||||
ClientServiceUpdate,
|
||||
)
|
||||
@@ -59,7 +60,7 @@ def update_service(
|
||||
return service
|
||||
|
||||
|
||||
@router.delete("/{service_id}")
|
||||
@router.delete("/{service_id}", response_model=ClientServiceDeleteResponse)
|
||||
def delete_service(
|
||||
site_id: int = Path(...),
|
||||
service_id: int = Path(...),
|
||||
@@ -69,4 +70,4 @@ def delete_service(
|
||||
"""Delete a client service."""
|
||||
client_service_service.delete(db, service_id)
|
||||
db.commit()
|
||||
return {"message": "Service deleted"} # noqa: API001
|
||||
return ClientServiceDeleteResponse(message="Service deleted")
|
||||
|
||||
Reference in New Issue
Block a user