def configure_api(config): from ichnaea.api.locate.country.views import CountryView from ichnaea.api.locate.locate_v2.views import LocateV2View from ichnaea.api.locate.locate_v1.views import LocateV1View from ichnaea.api.submit.submit_v1.views import SubmitV1View from ichnaea.api.submit.submit_v2.views import SubmitV2View from ichnaea.api.submit.submit_v3.views import SubmitV3View CountryView.configure(config) LocateV1View.configure(config) LocateV2View.configure(config) SubmitV1View.configure(config) SubmitV2View.configure(config) SubmitV3View.configure(config)
def configure_api(config): """Configure API related views and set up routes.""" from ichnaea.api.locate.country.views import CountryView from ichnaea.api.locate.locate_v1.views import LocateV1View from ichnaea.api.locate.locate_v2.views import LocateV2View from ichnaea.api.submit.submit_v1.views import SubmitV1View from ichnaea.api.submit.submit_v2.views import SubmitV2View from ichnaea.api.submit.submit_v3.views import SubmitV3View CountryView.configure(config) LocateV1View.configure(config) LocateV2View.configure(config) SubmitV1View.configure(config) SubmitV2View.configure(config) SubmitV3View.configure(config)
def configure_service(config): from ichnaea.heartbeat.views import HeartbeatView from ichnaea.monitor.views import MonitorView from ichnaea.api.locate.country.views import CountryView from ichnaea.api.locate.locate_v2.views import LocateV2View from ichnaea.api.locate.locate_v1.views import LocateV1View from ichnaea.api.submit.submit_v1.views import SubmitV1View from ichnaea.api.submit.submit_v2.views import SubmitV2View from ichnaea.api.submit.submit_v3.views import SubmitV3View HeartbeatView.configure(config) MonitorView.configure(config) CountryView.configure(config) LocateV1View.configure(config) LocateV2View.configure(config) SubmitV1View.configure(config) SubmitV2View.configure(config) SubmitV3View.configure(config)
def configure_api(config): """Configure API related views and set up routes.""" from ichnaea.api.locate.locate_v1.views import LocateV1View from ichnaea.api.locate.locate_v2.views import LocateV2View from ichnaea.api.locate.region_v0.views import RegionV0JSView from ichnaea.api.locate.region_v0.views import RegionV0JSONView from ichnaea.api.locate.region_v1.views import RegionV1View from ichnaea.api.submit.submit_v1.views import SubmitV1View from ichnaea.api.submit.submit_v2.views import SubmitV2View from ichnaea.api.submit.submit_v3.views import SubmitV3View LocateV1View.configure(config) LocateV2View.configure(config) RegionV0JSView.configure(config) RegionV0JSONView.configure(config) RegionV1View.configure(config) SubmitV1View.configure(config) SubmitV2View.configure(config) SubmitV3View.configure(config)