nextcloud/apps/files_publiclink/ajax/getlink.php

8 lines
177 B
PHP

<?php
$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
require_once('../lib_public.php');
$path = $_GET['path'];
echo json_encode(OC_PublicLink::getLink($path));