moved some of the inserve api enpoints to different places

This commit is contained in:
2026-01-07 23:18:14 +01:00
parent eb2e4678eb
commit 52382473da
6 changed files with 45 additions and 38 deletions

View File

@@ -13,6 +13,7 @@ $API_inserve->setupConnection();
if ($API_inserve->request_method === 'GET') {
if ($_GET['action'] = 'auth/me') {
$API_inserve->checkPermissions('admin-sources', 'RO');
# This api call, when called from the frontend will not be forwarding to a url.
$API_inserve->return_url = false;
@@ -21,6 +22,3 @@ if ($API_inserve->request_method === 'GET') {
http_response_code($API_inserve->httpCode);
}
}