routing.yml 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. playlists_user:
  2. pattern: /user/{user_slug}/playlists
  3. defaults: { _controller: MuzichPlaylistBundle:Show:user, topmenu: playlists }
  4. playlist:
  5. pattern: /user/{user_slug}/playlist/{playlist_id}
  6. defaults: { _controller: MuzichPlaylistBundle:Show:show }
  7. requirements:
  8. playlist_id: \d+
  9. playlist_new:
  10. pattern: /private/user/{user_slug}/playlist/new
  11. defaults: { _controller: MuzichPlaylistBundle:Edit:create }
  12. playlist_edit:
  13. pattern: /private/user/{user_slug}/playlist/{playlist_id}/edit
  14. defaults: { _controller: MuzichPlaylistBundle:Edit:edit }
  15. playlist_update:
  16. pattern: /private/user/{user_slug}/playlist/{playlist_id}/update
  17. defaults: { _controller: MuzichPlaylistBundle:Edit:update }
  18. playlist_delete:
  19. pattern: /private/playlist/delete/{playlist_id}/{token}
  20. defaults: { _controller: MuzichPlaylistBundle:Edit:delete }
  21. playlist_unpick:
  22. pattern: /private/playlist/unpick/{playlist_id}/{token}/{redirect_owner}
  23. defaults: { _controller: MuzichPlaylistBundle:Edit:unpick, redirect_owner: false }
  24. playlist_pick:
  25. pattern: /private/playlist/pick/{playlist_id}/{token}/{redirect_owner}
  26. defaults: { _controller: MuzichPlaylistBundle:Edit:pick, redirect_owner: false }
  27. playlist_add_private_links:
  28. pattern: /private/playlist/add-private-links/{playlist_id}
  29. defaults: { _controller: MuzichPlaylistBundle:Edit:addPrivateLinks }
  30. playlist_datas_for_autoplay:
  31. pattern: /ajax/autoplay/playlist/datas/{playlist_id}/{offset}
  32. defaults: { _controller: MuzichPlaylistBundle:Show:getAutoplayData, offset: null, shuffle: false }
  33. requirements:
  34. offset: \d+
  35. playlist_datas_for_autoplay_shuffle:
  36. pattern: /ajax/autoplay/playlist/datas/{playlist_id}/shuffle
  37. defaults: { _controller: MuzichPlaylistBundle:Show:getAutoplayData, offset: null, shuffle: true }
  38. playlist_update_order:
  39. pattern: /ajax/playlist/order/update/{playlist_id}/{token}
  40. defaults: { _controller: MuzichPlaylistBundle:Edit:updateOrder }
  41. playlist_remove_element:
  42. pattern: /ajax/playlist/element/remove/{playlist_id}/{index}/{token}
  43. defaults: { _controller: MuzichPlaylistBundle:Edit:removeElement }
  44. playlists_add_element_prompt:
  45. pattern: /ajax/playlist/element/add/prompt/{element_id}
  46. defaults: { _controller: MuzichPlaylistBundle:Show:getAddElementPrompt }
  47. playlists_add_element:
  48. pattern: /ajax/playlist/element/add/{playlist_id}/{element_id}/{token}
  49. defaults: { _controller: MuzichPlaylistBundle:Edit:addElement }
  50. playlists_add_element_and_copy:
  51. pattern: /ajax/playlist/element/add-and-copy/{playlist_id}/{element_id}/{token}
  52. defaults: { _controller: MuzichPlaylistBundle:Edit:addElementAndCopy }
  53. playlist_add_element_and_create:
  54. pattern: /ajax/playlist/element/add-and-create/{element_id}
  55. defaults: { _controller: MuzichPlaylistBundle:Edit:addElementAndCreate }