16 lines
		
	
	
		
			589 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			589 B
		
	
	
	
		
			Python
		
	
	
	
| from django.urls import path,include
 | |
| from .views import CompanyViewSet, ConsumerViewSet, ConsumerMPLoginView, ConsumerRegister, change_remain_count
 | |
| from rest_framework import routers
 | |
| 
 | |
| 
 | |
| router = routers.DefaultRouter()
 | |
| router.register('consumer', ConsumerViewSet, basename="consumer")
 | |
| router.register('company', CompanyViewSet, basename="company")
 | |
| 
 | |
| urlpatterns = [
 | |
|     path('consumer/mplogin/', ConsumerMPLoginView.as_view()),
 | |
|     path('consumer/register/', ConsumerRegister.as_view()),
 | |
|     path('change_remain_count/', change_remain_count.as_view()),
 | |
|     path('', include(router.urls)),
 | |
| ]
 |