API routing updated.

This commit is contained in:
Alexey Skobkin 2016-03-22 20:44:22 +03:00
parent 9779233e87
commit 5ccefa630f
3 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,4 @@
api_crawler_receive_all_page:
path: /all/page
defaults: { _controller: SkobkinPointToolsBundle:Api/Crawler:receiveAllPage, _format: json }
methods: [POST]

View File

@ -1,4 +1,4 @@
last_user_events:
api_public_last_user_events:
path: /user/id/{id}/events/subscribers
defaults: { _controller: SkobkinPointToolsBundle:Api:lastUserSubscribersById, _format: json }
requirements:

View File

@ -21,6 +21,10 @@ events_last:
path: /last
defaults: { _controller: SkobkinPointToolsBundle:Events:last }
skobkin_point_tools:
resource: "@SkobkinPointToolsBundle/Resources/config/api/routing.yml"
api_public:
resource: "@SkobkinPointToolsBundle/Resources/config/api/public.yml"
prefix: /api/v1
api_crawler:
resource: "@SkobkinPointToolsBundle/Resources/config/api/crawler.yml"
prefix: /api/crawler