public-health-ch/feedler/api.py

8 lines
254 B
Python
Raw Normal View History

2017-07-03 14:42:27 +00:00
from wagtail.api.v2.router import WagtailAPIRouter
from .endpoints import EntriesAPIEndpoint
# Create the router. "wagtailapi" is the URL namespace
api_router = WagtailAPIRouter('wagtailapi')
api_router.register_endpoint('entries', EntriesAPIEndpoint)