Created
January 14, 2016 17:18
-
-
Save samirbr/1c9331de58a2c8eb9509 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
from django.conf.urls import patterns, url, include | |
from rest_framework import routers | |
from .views import (ClientPlanViewSet, PlanViewSet, | |
ClientPlanReportViewSet, ReportUsage) | |
router = routers.DefaultRouter() | |
router.register(r'billing/manage', ClientPlanViewSet, | |
base_name='billing_manage') | |
router.register(r'billing/plans', PlanViewSet, base_name='plan_list') | |
router.register(r'billing/get-client-details', ClientPlanReportViewSet, | |
base_name='billing_client_details') | |
urlpatterns = patterns( | |
'billing.views', | |
# TODO --> Url para tirar o cliente da lista de email... | |
url(r'^report/$', ReportUsage.as_view(), name='billing-report'), | |
url(r'^api/', include(router.urls)), | |
# url(r'^billing-creation/$', BillingAccountCreate.as_view(), | |
# name='billing-creation'), | |
# url(r'^billing/detail/(?P<pk>[0-9]+)/$', BillingAccountDetail.as_view(), | |
# name='billing-detail'), | |
# url(r'^billing/(?P<uuid>[-\w\d]+)/$', view=get_myplan, name='billing'), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment