# Copyright (c) 2013 Ankur Sethi <contact@ankursethi.in>
# Licensed under the terms of the MIT license.
# See the file LICENSE for copying permissions.


from django.conf.urls import patterns, include, url
from tastypie.api import Api
from tracker.api import TaskResource, WorkSessionResource, \
    ApiTokenResource, ProjectResource, UserResource
from tracker.views import SignupView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

# tracker API.
v1_api = Api(api_name='v1')
v1_api.register(ApiTokenResource())
v1_api.register(UserResource())
v1_api.register(ProjectResource())
v1_api.register(TaskResource())
v1_api.register(WorkSessionResource())

urlpatterns = patterns('',
    url(r'^fhqwhgads/', include(admin.site.urls)),
    url(r'^signup/', SignupView.as_view(), name='signup'),
    url(r'^api/', include(v1_api.urls)),
)
