Няма описание

123456789101112131415161718192021
  1. # from django.urls import include, path
  2. from rest_framework import routers
  3. from . import views
  4. from django.conf.urls import url, include
  5. from django.urls import path
  6. # Wire up our API using automatic URL routing.
  7. # Additionally, we include login URLs for the browsable API.
  8. urlpatterns = [
  9. url(r'^api/insertar_fac$', views.insertarFacultades),
  10. url(r'^api/hello$', views.hello_world),
  11. url(r'^api/insertar_cursos$', views.insertarTodosLosCursos),
  12. url(r'^api/update_faculty$', views.updateFaculty),
  13. # url(r'^api/find_course$', views.findCourse),
  14. url('api/find_course', views.findCourse),
  15. url(r'^api/add_taken_course$', views.addTakenCourse),
  16. url(r'^api/get_user_id$', views.getUserId),
  17. url('api/get_faculty_name', views.getFacultyUser)
  18. ]