Skip to content

Commit

Permalink
Merge pull request vaibhavpandeyvpz#10 from felixble/feature/vaibhavp…
Browse files Browse the repository at this point in the history
…andeyvpz#8-send-reports-via-http-put

Accept new reports via HTTP PUT - closes vaibhavpandeyvpz#8
  • Loading branch information
vaibhavpandeyvpz authored Jan 19, 2017
2 parents 58eec54 + 8d3f545 commit b3279f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions classes/Http/Providers/RoutesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public function register(Application $app)

$app->post('/api', 'ApiController:save');

$app->put('/api/{report_id}', 'ApiController:save');

$app->get('/applications', 'ApplicationsController:index')
->bind('applications');

Expand Down
2 changes: 1 addition & 1 deletion www/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'security.firewalls' => array(
'login' => array(
'anonymous' => true,
'pattern' => '^/(api|login)$',
'pattern' => '^/(api(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})?|login)$',
),
'admin' => array(
'form' => array(
Expand Down

0 comments on commit b3279f3

Please sign in to comment.