mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			509 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			509 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.conf.urls import url, include
 | 
						|
from typing import Any
 | 
						|
 | 
						|
from zerver.lib.rest import rest_dispatch
 | 
						|
 | 
						|
import zilencer.views
 | 
						|
import zerver.views.report
 | 
						|
 | 
						|
i18n_urlpatterns = [] # type: Any
 | 
						|
 | 
						|
# Zilencer views following the REST API style
 | 
						|
v1_api_and_json_patterns = [
 | 
						|
    url('^deployment/report_error$', rest_dispatch,
 | 
						|
        {'POST': 'zerver.views.report.report_error'}),
 | 
						|
]
 | 
						|
 | 
						|
urlpatterns = [
 | 
						|
    url(r'^api/v1/', include(v1_api_and_json_patterns)),
 | 
						|
    url(r'^json/', include(v1_api_and_json_patterns)),
 | 
						|
]
 |