euscanwww/api: clean and "document" euscan API
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
		@@ -32,6 +32,7 @@ urlpatterns = patterns('euscan.views',
 | 
			
		||||
    (r'^$', 'index'),
 | 
			
		||||
    url(r'^feed/$', GlobalFeed(), name='global_feed'),
 | 
			
		||||
    (r'^about/$', 'about'),
 | 
			
		||||
    (r'^about/api$', 'api'),
 | 
			
		||||
    (r'^statistics/$', 'statistics'),
 | 
			
		||||
    (r'^statistics/charts/(?P<chart>[\w\-]+).png$', 'chart'),
 | 
			
		||||
    (r'^world/$', 'world'),
 | 
			
		||||
 
 | 
			
		||||
@@ -123,6 +123,10 @@ def world_scan(request):
 | 
			
		||||
def about(request):
 | 
			
		||||
    return {}
 | 
			
		||||
 | 
			
		||||
@render_to("euscan/api.html")
 | 
			
		||||
def api(request):
 | 
			
		||||
    return {}
 | 
			
		||||
 | 
			
		||||
@render_to("euscan/statistics.html")
 | 
			
		||||
def statistics(request):
 | 
			
		||||
    return {}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user