Add CalDAV / CardDAV autodiscovery
This commit is contained in:
parent
60919488f1
commit
51954c7f3d
@ -64,6 +64,18 @@ class Well_known extends \Zotlabs\Web\Controller {
|
|||||||
echo file_get_contents('doc/dnt-policy.txt');
|
echo file_get_contents('doc/dnt-policy.txt');
|
||||||
killme();
|
killme();
|
||||||
|
|
||||||
|
case 'caldav':
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') {
|
||||||
|
http_status('301', 'moved permanently');
|
||||||
|
goaway(z_root() . '/cdav');
|
||||||
|
};
|
||||||
|
|
||||||
|
case 'caldav':
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') {
|
||||||
|
http_status('301', 'moved permanently');
|
||||||
|
goaway(z_root() . '/cdav');
|
||||||
|
};
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if(file_exists(\App::$cmd)) {
|
if(file_exists(\App::$cmd)) {
|
||||||
echo file_get_contents(\App::$cmd);
|
echo file_get_contents(\App::$cmd);
|
||||||
|
Reference in New Issue
Block a user