# pylint: disable=C0103
from __future__ import absolute_import
from django.conf.urls import url
from games.views import installers as views


urlpatterns = [
    url(r'revisions/(?P<pk>[\d]+)$',
        views.InstallerRevisionDetailView.as_view(),
        name="api_installer_revision_detail"),
    url(r'(?P<pk>[\d]+)/revisions$',
        views.InstallerRevisionListView.as_view(),
        name="api_installer_revision_list"),

    url(r'game/(?P<slug>[\w\-]+)$',
        views.GameInstallerList.as_view(),
        name='api_game_installer_list'),
    url(r'game/(?P<slug>[\w\-]+)/revisions$',
        views.GameRevisionListView.as_view(),
        name='api_game_revisions_list'),

    url(r'(?P<pk>[\d]+)$',
        views.InstallerDetailView.as_view(),
        name='api_installer_detail'),
    url(r'^$',
        views.InstallerListView.as_view(),
        name='api_installer_list'),

]

@@ -165,28 +165,27 @@
 l(r'
-revisions/(?P%3Cpk%3E%5B%5Cd
+game/(?P%3Cslug%3E%5B%5Cw%5C-
 %5D+)$
@@ -193,32 +193,36 @@
 ,%0A        views.
+Game
 InstallerRevisio
@@ -218,26 +218,12 @@
 ller
-RevisionDetailView
+List
 .as_
@@ -235,37 +235,42 @@
 ),%0A        name=
-%22
+'
 api_
+game_
 installer_revisi
@@ -267,47 +267,45 @@
 ler_
-revision_detail%22),%0A    url(r'(?P%3Cpk%3E%5B%5Cd
+list'),%0A    url(r'game/(?P%3Cslug%3E%5B%5Cw%5C-
 %5D+)/
@@ -331,25 +331,20 @@
   views.
-Installer
+Game
 Revision
@@ -380,22 +380,17 @@
 ame=
-%22
+'
 api_
-installer
+game
 _rev
@@ -398,14 +398,15 @@
 sion
+s
 _list
-%22
+'
 ),%0A%0A
@@ -415,38 +415,39 @@
   url(r'
-game/(?P%3Cslug%3E%5B%5Cw%5C-%5D+)
+(?P%3Cpk%3E%5B%5Cd%5D+)/revisions
 $',%0A    
@@ -448,36 +448,32 @@
 ,%0A        views.
-Game
 InstallerList.as
@@ -457,36 +457,48 @@
  views.Installer
-List
+RevisionListView
 .as_view(),%0A    
@@ -502,34 +502,29 @@
        name=
-'
+%22
 api_
-game_
 installer_li
@@ -513,37 +513,46 @@
 =%22api_installer_
+revision_
 list
-'
+%22
 ),%0A    url(r'gam
@@ -552,40 +552,31 @@
 l(r'
-game/(?P%3Cslug%3E%5B%5Cw%5C-%5D+)/revisions
+revisions/(?P%3Cpk%3E%5B%5Cd%5D+)
 $',%0A
@@ -585,36 +585,41 @@
       views.
-Game
+Installer
 Revision
 ListView.as_
@@ -598,36 +598,38 @@
 nstallerRevision
-List
+Detail
 View.as_view(),%0A
@@ -637,33 +637,38 @@
        name=
-'
+%22
 api_
-game
+installer
 _revisions_l
@@ -656,39 +656,40 @@
 staller_revision
-s_list'
+_detail%22
 ),%0A%0A    url(r'(?

Fix order for installer API routes