Skip to content

Commit

Permalink
fix: name sabre dav route (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored May 14, 2019
1 parent 647f22f commit ebc5a78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions routes/routes.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

$verbs = [
Expand All @@ -20,6 +21,8 @@
'REPORT',
];

Illuminate\Routing\Router::$verbs = array_merge(Illuminate\Routing\Router::$verbs, $verbs);
Router::$verbs = array_merge(Router::$verbs, $verbs);

Route::match($verbs, '{path?}', 'DAVController@init')->where('path', '(.)*');
Route::any('{path?}', 'DAVController@init')
->where('path', '(.)*')
->name('sabre.dav');

0 comments on commit ebc5a78

Please sign in to comment.