Revision 2bf7498b snf-cyclades-app/synnefo/api/urls.py

b/snf-cyclades-app/synnefo/api/urls.py
39 39

  
40 40

  
41 41
#
42
# The OpenStack Compute API v1.1
42
# The OpenStack Compute API v2.0
43 43
#
44
api11_patterns = patterns(
44
api20_patterns = patterns(
45 45
    '',
46 46
    (r'^servers', include(servers)),
47 47
    (r'^flavors', include(flavors)),
......
53 53
urlpatterns = patterns(
54 54
    '',
55 55
    (r'^(?:.json|.xml|.atom)?$', versions_list),
56
    (r'^v1.1/(?:.json|.xml|.atom)?$', version_details,
56
    (r'^v2.0/(?:.json|.xml|.atom)?$', version_details,
57 57
        {'api_version': 'v1.1'}),
58
    (r'^v1.1/', include(api11_patterns)),
58
    (r'^v2.0/', include(api20_patterns)),
59 59
    (r'^.+', not_found),
60 60
)

Also available in: Unified diff