nomadro/apps/api/services/nomadro_pb/__init__.py
Eric b06a14b6aa Ship social admin nested menus with list/detail CRUD, soft-archive UGC, and PocketBase-ready stores.
admin.nomadro.com gets sidebar L1/L2 social ops (paginated lists + entity detail); API adds soft-delete archives/stats and shared nomadro_pb for social/coffee/notify/work.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 16:41:43 +08:00

23 lines
623 B
Python

"""Shared PocketBase access for Nomadro FastAPI services (.com/US first)."""
from __future__ import annotations
from nomadro_pb.client import PocketBaseClient, PocketBaseError, get_pb, pb_quote
from nomadro_pb.config import DEFAULT_PB_URL, PB_ADMIN_EMAIL, PB_URL
from nomadro_pb.ensure import ensure_all_collections, ensure_once
# Back-compat alias — was wrongly pointing at hackrobot.cn
ONLINE_PB_URL = DEFAULT_PB_URL
__all__ = [
"DEFAULT_PB_URL",
"ONLINE_PB_URL",
"PB_ADMIN_EMAIL",
"PB_URL",
"PocketBaseClient",
"PocketBaseError",
"ensure_all_collections",
"ensure_once",
"get_pb",
"pb_quote",
]