# Path: ngnotifier/api_views.py
# def host_detail(request, host_url):
# def host_list(request):
# def host_last(request, host):
# def group_list(request, host):
# def news_list(request, host, group):
# def news_list_refresh(request, host, group):
# def news_detail(request, news_id):
# def search(request, host=None, group=None):
# def login_phone(request):
# def logout_phone(request, device_session):
# def group_subscriptions(request, device_session, host):
# def register_phone(request):
# def forgot_password_phone(request):
# def subscribe_notifications(request):
# def unsubscribe_notifications(request):
# def post_phone(request, device_session):
# def update_regid(request):
# def get_subscribed_groups(request):


from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.views import logout
from ngnotifier.settings import SITE_URL, SITE_URL_PREFIX
from ngnotifier import api_views



admin.autodiscover()

api_urlpatterns = patterns(
    '',
    url(r'^$', api_views.host_list, name='host_list'),
    url(r'^login$', api_views.login_phone, name='login_phone'),
    url(r'^logout', api_views.logout_phone, name='logout_phone'),
    url(r'^register', api_views.register_phone, name='register_phone'),
    url(r'^forgot_password', api_views.forgot_password_phone, name='forgot_password_phone'),
    url(r'^subscribe_notifications', api_views.subscribe_notifications, name='subscribe_notifications_phone'),
    url(r'^unsubscribe_notifications', api_views.unsubscribe_notifications, name='unsubscribe_notifications_phone'),
    url(r'^subscribed_groups', api_views.get_subscribed_groups, name='subscribed_groups'),
    url(r'^update_regid', api_views.update_regid, name='update_regid_phone'),

# Path: ngnotifier/api_views.py
# def host_detail(request, host_url):
# def host_list(request):
# def host_last(request, host):
# def group_list(request, host):
# def news_list(request, host, group):
# def news_list_refresh(request, host, group):
# def news_detail(request, news_id):
# def search(request, host=None, group=None):
# def login_phone(request):
# def logout_phone(request, device_session):
# def group_subscriptions(request, device_session, host):
# def register_phone(request):
# def forgot_password_phone(request):
# def subscribe_notifications(request):
# def unsubscribe_notifications(request):
# def post_phone(request, device_session):
# def update_regid(request):
# def get_subscribed_groups(request):


# Path: ngnotifier/urls.py
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.views import logout
from ngnotifier.settings import SITE_URL, SITE_URL_PREFIX
from ngnotifier import api_views




admin.autodiscover()

api_urlpatterns = patterns(
    '',
    url(r'^$', api_views.host_list, name='host_list'),
    url(r'^login$', api_views.login_phone, name='login_phone'),
    url(r'^logout', api_views.logout_phone, name='logout_phone'),
    url(r'^register', api_views.register_phone, name='register_phone'),
    url(r'^forgot_password', api_views.forgot_password_phone, name='forgot_password_phone'),
    url(r'^subscribe_notifications', api_views.subscribe_notifications, name='subscribe_notifications_phone'),
    url(r'^unsubscribe_notifications', api_views.unsubscribe_notifications, name='unsubscribe_notifications_phone'),
    url(r'^subscribed_groups', api_views.get_subscribed_groups, name='subscribed_groups'),
    url(r'^update_regid', api_views.update_regid, name='update_regid_phone'),

    url(r'^post$',  api_views.post_phone, name='post_phone'),