Skip to content

Commit b2ca13a

Browse files
Show pending shares
1 parent 82b8ff1 commit b2ca13a

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
44
<id>nmc_sharing</id>
5-
<name>NMC Sharing</name>
5+
<name>nmc_sharing</name>
66
<summary>pending shares within the file list view.</summary>
77
<description><![CDATA[Show pending shares within the file list view.]]></description>
88
<version>0.0.1</version>

appinfo/routes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99
*/
1010
return [
1111
'routes' => [
12-
['name' => 'page#do_echo', 'url' => '/echo', 'verb' => 'POST'],
13-
['name' => 'Page#index', 'url' => '/', 'verb' => 'GET']
14-
]
12+
]
1513
];

lib/Controller/PageController.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,4 @@ public function __construct($AppName, IRequest $request, $UserId){
1313
parent::__construct($AppName, $request);
1414
$this->userId = $UserId;
1515
}
16-
17-
/**
18-
* CAUTION: the @Stuff turns off security checks; for this page no admin is
19-
* required and no CSRF check. If you don't know what CSRF is, read
20-
* it up in the docs or you might create a security hole. This is
21-
* basically the only required method to add this exemption, don't
22-
* add it to any other method if you don't exactly know what it does
23-
*
24-
* @NoAdminRequired
25-
* @NoCSRFRequired
26-
*/
27-
public function index() {
28-
return new TemplateResponse('nmc_sharing', 'index'); // templates/index.php
29-
}
30-
3116
}

tests/Unit/Controller/PageControllerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,4 @@ public function setUp() {
2020
'nmc_sharing', $request, $this->userId
2121
);
2222
}
23-
24-
public function testIndex() {
25-
$result = $this->controller->index();
26-
27-
$this->assertEquals('index', $result->getTemplateName());
28-
$this->assertTrue($result instanceof TemplateResponse);
29-
}
30-
3123
}

0 commit comments

Comments
 (0)