"""
Copyright [2009-2014] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

from django.views.generic import TemplateView
from django.conf.urls import patterns, url, include
from rest_framework import routers
from apiv1 import views

router = routers.DefaultRouter()
router.register(r'rna', views.RnaViewSet)
router.register(r'accession', views.AccessionViewSet)

urlpatterns = patterns('',
    url(r'^v1/', include(router.urls)),
    url(r'^v1/', include('rest_framework.urls', namespace='rest_framework_v1')),
)

"""
Copyright [2009-2014] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

from django.views.generic import TemplateView
from django.conf.urls import patterns, url, include
from rest_framework import routers
from apiv1 import views

router = routers.DefaultRouter()
router.register(r'rna', views.RnaViewSet)
router.register(r'accession', views.AccessionViewSet)

urlpatterns = patterns('',
    url(r'^v1/', include(router.urls)),
    url(r'^v1/', include('rest_framework.urls', namespace='rest_framework_v1')),
    url(r'^current/', include(router.urls)),
    url(r'^current/', include('rest_framework.urls', namespace='rest_framework_v1')),
)

Add a stable url for the current API version