from .views import * from django.urls import path from rest_framework.authtoken.views import ObtainAuthToken from fcm_django.api.rest_framework import FCMDeviceAuthorizedViewSet, FCMDeviceViewSet urlpatterns = [ path('auth/register/user', RegisterUserAPI.as_view()), path('auth/login/user', CustomAuthToken.as_view()), path('auth/register/profesor', RegisterProfesorAPI.as_view()), path('auth/register/supervisor', RegisterSupervisorAPI.as_view()), path('cursos', CursoGet.as_view()), path('createtoken', FCMDeviceAuthorizedViewSet.as_view({'post': 'create'})), path('curso/<str:pk>', GetCurso.as_view()), path('crearPago', CreatePago.as_view()), path('getClase/<str:id>', ClaseGet.as_view()), path('getTarea', TareaGet.as_view()), #path('getTarea/estudiante/',TareaFilter.as_view(),name="Filter Tarea"), path('getPromo', PromoGet.as_view()), path('crearClase', CreateClase.as_view()), path('crearPromo', PromoSave.as_view()), path('sendnotificacion', SendNotificacion.as_view(), name='Send Notificacion'), path('getcompras/<str:id>', getCompras.as_view()), path('crearpago', CreatePago.as_view()), path('crearcompra', CreateCompra.as_view()), path('getcursosprofesor/<str:id>', getCursosbyProfesor.as_view()), path('creartarea', CreateTarea.as_view()), #CREAR TAREA POR PROFESOR path('crearsesion', CreateSesion.as_view()), path('asistencia', updateAsistencia.as_view()), path('checkasistencia', checkAsistencia.as_view()),
from django.urls import path from . import views from fcm_django.api.rest_framework import FCMDeviceAuthorizedViewSet from rest_framework_simplejwt import views as jwt_views urlpatterns = [ path('sendNotif', views.Notif.as_view(), name='api_notif'), path('login', views.Login.as_view(), name='api_login'), path('registerFCMToken', FCMDeviceAuthorizedViewSet.as_view({'post': 'create'}), name='create_fcm_device'), path('token', jwt_views.TokenObtainPairView.as_view(), name='token_obtain_pair'), path('token/refresh', jwt_views.TokenRefreshView.as_view(), name='token_refresh'), path('token/verify', jwt_views.TokenVerifyView.as_view(), name='token_verify'), ]
from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('posts.urls')), path('api/', include('hackathons.urls')), path('api/', include('workshop.urls')), path('api/', include('internships.urls')), path('api/', include('fyp.urls')), path('api/', include('sphere_engine.urls')), path('user/', include('user.urls')), path('chat/', include('chat.urls')), path('payment/', include('payment.urls')), # firebase cloud messaging route path('devices/', FCMDeviceAuthorizedViewSet.as_view({'get': 'list'}), name='create_fcm_device'), # path('accounts/',include('django.contrib.auth.urls')), # path('api-token-auth/', views.obtain_auth_token, name='api-tokn-auth'), path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'), path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # urlpatterns += [ # path('accounts/', include('django.contrib.auth.urls')), # ]
url(r'^proxy$', proxy_views.proxy_view), url(r'^notifications/', include(custom_notifications_urls)), # app: file_viewer url(r'^file_viewer/', include('file_viewer.urls')), url(r'^documents/', include('file_viewer.urls')), # app: user_dashboard url(r'^user_dashboard/', include('user_dashboard.urls')), # app: coterie url(r'^coterie/', include('coterie.urls')), url(r'^coteries/', include('coterie.urls')), # app: web_push url(r'^devices/delete', views_web_push.delete_device), url(r'^devices?$', FCMDeviceAuthorizedViewSet.as_view({'post': 'create'})), # MUST BE THE LAST ONE url(r'^', include('home.urls')), ] ############ Django Debug Toolbar ########## # if settings.DEBUG: # import debug_toolbar # urlpatterns += [ # url(r'^__debug__/', include(debug_toolbar.urls)), # ]
from .views import * from fcm_django.api.rest_framework import FCMDeviceAuthorizedViewSet api_urlpattern = [ path('meetings/create/', MeetingCreateView.as_view()), path('meetings/edit/', MeetingEditView.as_view()), path('meetings/delete/', MeetingDeleteView.as_view()), path('meetings/my/', MyMeetingListView.as_view()), path('meetings/my_past/', MyPastMeetingListView.as_view()), path('meetings/waiting/', WaitingMeetingListView.as_view()), path('meetings/waiting/count/', WaitingMeetingListNumberView.as_view()), path('meetings/today/', TodayMeetingListView.as_view()), path('meetings/recommendation/', RecommendationMeetingListView.as_view()), path('matching/received_request/', MeetingReceivedRequestMatchView.as_view()), path('matching/sent_request/', MeetingSentRequestMatchView.as_view()), path('matching/send_request/', MeetingSendRequestMatchView.as_view()), path('matching/send_request_new/', MeetingSendRequestMatchNewView.as_view()), path('matching/cancel_request/', MeetingCancelRequestMatchView.as_view()), path('matching/accept_request/', MeetingAcceptRequestMatchView.as_view()), path('matching/decline_request/', MeetingDeclineRequestMatchView.as_view()), path('matching/cancel_matching/', MeetingCancelMatchView.as_view()), #path('meetings/rate/', RatingView.as_view()), path('meetings/feedback/', FeedbackView.as_view()), path('call_manager/', CallManagerView.as_view()), path('fcm/register_device/', FCMDeviceAuthorizedViewSet.as_view({'post': 'create'}), name='create_fcm_device'), path('fcm/send_push/', PushNotificationView.as_view()), path('manager/chatting_room_list/', ChattingRoomListView.as_view()), path('manager/enter_room/', ManagerEnterRoomView.as_view()), path('version_check/ios/', CheckUpdateIOSView.as_view()), path('version_check/android/', CheckUpdateAndroidView.as_view()), ]
from django.conf.urls import url from django.contrib import admin from fcm_django.api.rest_framework import FCMDeviceAuthorizedViewSet urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^devices?$', FCMDeviceAuthorizedViewSet.as_view({'post': 'create', 'get': 'list'}), name='create_fcm_device'), ]
openapi.Info( title="Coffee shop API", default_version='v1', ), public=True, permission_classes=(permissions.AllowAny,), ) urlpatterns = [ re_path('^sentry-debug/', trigger_error), re_path(r'^auth/', include('rest_auth.urls')), re_path(r'^rest-auth/registration/', include('rest_auth.registration.urls')), re_path('^api/v1/', include('api.urls')), re_path(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), re_path(r'^register-notify-token/', FCMDeviceAuthorizedViewSet.as_view({'post': 'create'}), name='create_fcm_device'), re_path(r'^', include('django.contrib.auth.urls')), re_path(r'', include(('web.urls', 'web'), namespace='web')), ] urlpatterns += i18n_patterns( re_path(r'^jet/', include('jet.urls', 'jet')), re_path(f"{settings.ADMIN_URL}/", admin.site.urls, name="admin"), prefix_default_language=True, ) if settings.DEBUG: from django.conf.urls.static import static urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)