old_contents: from __future__ import unicode_literals
  
  from django.conf import settings
  from django.conf.urls import url, include
  from rest_framework import routers
  
  from geotrek.api.mobile import views as api_mobile
  
  router = routers.DefaultRouter()
  if 'geotrek.flatpages' in settings.INSTALLED_APPS:
      router.register(r'flatpages', api_mobile.FlatPageViewSet, base_name='flatpage')
  if 'geotrek.trekking' in settings.INSTALLED_APPS:
      router.register(r'treks', api_mobile.TrekViewSet, base_name='treks')
  
  urlpatterns = [
      url(r'^$', api_mobile.SwaggerSchemaView.as_view(), name="schema"),
      url(r'^', include(router.urls)),
      url(r'^settings/$', api_mobile.SettingsView.as_view(), name='settings'),
  ]
  
  if 'geotrek.trekking' in settings.INSTALLED_APPS:
      urlpatterns += [url(r'^treks/(?P<pk>\d+)/pois$',
                          api_mobile.POIViewSet.as_view({'get': 'list'}), name="poi")]
  
new_contents: from __future__ import unicode_literals
  
  from django.conf import settings
  from django.conf.urls import url, include
  from rest_framework import routers
  
  from geotrek.api.mobile import views as api_mobile
  
  router = routers.DefaultRouter()
  if 'geotrek.flatpages' in settings.INSTALLED_APPS:
      router.register(r'flatpages', api_mobile.FlatPageViewSet, base_name='flatpage')
  if 'geotrek.trekking' in settings.INSTALLED_APPS:
      router.register(r'treks', api_mobile.TrekViewSet, base_name='treks')
  
  urlpatterns = [
      url(r'^$', api_mobile.SwaggerSchemaView.as_view(), name="schema"),
      url(r'^', include(router.urls)),
      url(r'^settings/$', api_mobile.SettingsView.as_view(), name='settings'),
  ]
  
subject: Remove pois in url