20 lines
		
	
	
		
			927 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			927 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
| from django.urls import path, include
 | |
| from apps.develop.views import BackupDatabase, BackupMedia, ReloadClientGit, ReloadServerGit, ReloadServerOnly, TestViewSet, CorrectViewSet, testScanHtml
 | |
| from rest_framework.routers import DefaultRouter
 | |
| 
 | |
| API_BASE_URL = 'api/develop/'
 | |
| HTML_BASE_URL = 'dhtml/develop/'
 | |
| router = DefaultRouter()
 | |
| router.register('test', TestViewSet, basename='api_test')
 | |
| router.register('correct', CorrectViewSet, basename='correct')
 | |
| 
 | |
| urlpatterns = [
 | |
|     path(API_BASE_URL + 'reload_server_git/', ReloadServerGit.as_view()),
 | |
|     # path(API_BASE_URL + 'reload_web_git/', ReloadClientGit.as_view()),
 | |
|     path(API_BASE_URL + 'reload_server_only/', ReloadServerOnly.as_view()),
 | |
|     path(API_BASE_URL + 'backup_database/', BackupDatabase.as_view()),
 | |
|     path(API_BASE_URL + 'backup_media/', BackupMedia.as_view()),
 | |
|     path(API_BASE_URL, include(router.urls)),
 | |
|     path(HTML_BASE_URL + "testscan/", testScanHtml)
 | |
| ]
 |