Skip to content

Commit

Permalink
refactor: add .well-known redirects (#4773)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Jan 9, 2021
1 parent 01dc2d5 commit 5d4ddde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

Auth::routes(['verify' => true]);

// Redirect .well-known urls (https://en.wikipedia.org/wiki/List_of_/.well-known/_services_offered_by_webservers)
Route::permanentRedirect('/.well-known/carddav', '/dav/');
Route::permanentRedirect('/.well-known/caldav', '/dav/');
Route::permanentRedirect('/.well-known/security.txt', '/security.txt');

Route::get('/invitations/accept/{key}', 'Auth\InvitationController@show')->name('invitations.accept');
Route::post('/invitations/accept/{key}', 'Auth\InvitationController@store')->name('invitations.send');

Expand Down

0 comments on commit 5d4ddde

Please sign in to comment.