links angepasst
This commit is contained in:
parent
c441fbda4b
commit
aa1aaab607
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||
<id>agency</id>
|
||||
<id>da_agency</id>
|
||||
<name>Agency</name>
|
||||
<summary>App for managing Agency of DA</summary>
|
||||
<description><![CDATA[test]]></description>
|
||||
|
|
@ -13,10 +13,10 @@
|
|||
<nextcloud min-version="16"/>
|
||||
</dependencies>
|
||||
<navigations>
|
||||
<navigation>
|
||||
<!--<navigation>
|
||||
<name>Agenturmigration</name>
|
||||
<route>agency.page.index</route>
|
||||
<icon>app.svg</icon>
|
||||
</navigation>
|
||||
</navigation>-->
|
||||
</navigations>
|
||||
</info>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ return [
|
|||
['name' => 'agency#updateagencygroupcontributors', 'url' => '/updateagencygroupcontributors/{gid}', 'verb' => 'PUT'],
|
||||
['name' => 'agency#updateagencygroup', 'url' => '/updateagencygroup', 'verb' => 'POST'],
|
||||
['name' => 'agency#deleteagencygroup', 'url' => '/delagencygroup', 'verb' => 'POST'],
|
||||
|
||||
|
||||
//['name' => 'agency#getlogdata', 'url' => '/getdata', 'verb' => 'GET'],
|
||||
|
||||
# GROUPS
|
||||
['name' => 'group#getagencygroups', 'url' => '/getagencygroups', 'verb' => 'GET'],
|
||||
['name' => 'group#addagencygroup', 'url' => '/addagencygroup', 'verb' => 'PUT'],
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use OCP\IUserSession;
|
|||
use OCP\AppFramework\Controller;
|
||||
use OCP\IRequest;
|
||||
|
||||
|
||||
class Application extends App {
|
||||
|
||||
protected $AppName = 'Agency';
|
||||
|
|
@ -24,9 +23,7 @@ class Application extends App {
|
|||
|
||||
# ADding the Event, that User has Changed - update the logged User by Django. Works only by personal informations of the User!
|
||||
$dispatcher->addServiceListener(UserChangedEvent::class, UserChangedByNC::class);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -37,6 +34,7 @@ class UserChangedByNC extends Controller {
|
|||
protected $session;
|
||||
protected $request;
|
||||
private $nclink = 'https://test.app.digitale-agentur.com';
|
||||
//private $nclink = 'http://host.docker.internal:8000';
|
||||
|
||||
public function __construct(string $AppName, IRequest $request, IUserSession $session) {
|
||||
$this->request = $request;
|
||||
|
|
@ -53,7 +51,6 @@ class UserChangedByNC extends Controller {
|
|||
];
|
||||
$context = stream_context_create($opts);
|
||||
$file = file_get_contents($this->nclink.'/api/uschanged/'.$this->session->getUser()->getUID().'/'.$this->request->getCookie('nc_session_id'), false, $context);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -66,6 +63,7 @@ class LogoutByNC extends Controller {
|
|||
|
||||
protected $session;
|
||||
private $nclink = 'https://test.app.digitale-agentur.com';
|
||||
//private $nclink = 'http://host.docker.internal:8000';
|
||||
|
||||
public function __construct(string $AppName, IRequest $request, IUserSession $session) {
|
||||
parent::__construct($AppName, $request);
|
||||
|
|
|
|||
|
|
@ -144,6 +144,14 @@ class AgencyController extends Controller {
|
|||
//return "OK!";
|
||||
}
|
||||
|
||||
/**
|
||||
* @PublicPage
|
||||
* @NoCSRFRequired
|
||||
*
|
||||
*/
|
||||
public function getlogdata(){
|
||||
return "THIS IS AWESOME";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "agency",
|
||||
"name": "da_agency",
|
||||
"version": "0.0.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "agency",
|
||||
"name": "da_agency",
|
||||
"description": "App for managing Agency of DA",
|
||||
"version": "0.0.1",
|
||||
"author": "Holger Trampe",
|
||||
|
|
|
|||
Loading…
Reference in New Issue