mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-30 23:39:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			440 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			440 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Copyright (C) 2018-2025 by BDE ENS Paris-Saclay
 | |
| # SPDX-License-Identifier: GPL-3.0-or-later
 | |
| 
 | |
| from django.conf import settings
 | |
| from django.urls import path
 | |
| 
 | |
| from .views import RightsView, ScopesView
 | |
| 
 | |
| app_name = 'permission'
 | |
| urlpatterns = [
 | |
|     path('rights/', RightsView.as_view(), name="rights"),
 | |
| ]
 | |
| 
 | |
| if "oauth2_provider" in settings.INSTALLED_APPS:
 | |
|     urlpatterns += [
 | |
|         path('scopes/', ScopesView.as_view(), name="scopes"),
 | |
|     ]
 |