All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 45s
- Add PageConfig model with feature flags (calendar, market) - Auto-create PageConfig on Ghost page sync - Add create_page() for Ghost /pages/ API endpoint - Add /new-page/ route for creating pages - Add ?type=pages blog filter with Posts|Pages tab toggle - Add list_pages() to DBClient with PageConfig eager loading - Add PUT /<slug>/admin/features/ route for feature toggles - Add feature badges (calendar, market) on page cards - Add features panel to page admin dashboard - Update shared_lib submodule with PageConfig model Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
393 B
Python
19 lines
393 B
Python
from ..ghost_db import DBClient
|
|
|
|
|
|
async def pages_data(session, page, search):
|
|
client = DBClient(session)
|
|
|
|
pages, pagination = await client.list_pages(
|
|
limit=10,
|
|
page=page,
|
|
search=search,
|
|
)
|
|
|
|
return {
|
|
"pages": pages,
|
|
"page": pagination.get("page", page),
|
|
"total_pages": pagination.get("pages", 1),
|
|
"search": search,
|
|
}
|