mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Add @publicpage to get() method tags
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
@@ -21,7 +21,7 @@ page to enter the password.
|
||||
A public page can also call other endpoints. These endpoints operate very similarly
|
||||
with the difference that if the user is not properly authenticated it will throw a 404.
|
||||
|
||||
It is required that you have a parameter (probaby in your url) with the ``token``. As an example
|
||||
It is required that you have a parameter (probably in your url) with the ``token``. As an example
|
||||
your ``routes.php`` could look like:
|
||||
|
||||
.. code-block:: php
|
||||
@@ -73,7 +73,10 @@ As said the PublicShareController is a very basic controller. You need to implem
|
||||
}
|
||||
|
||||
/**
|
||||
* Your normal controller function
|
||||
* Your normal controller function. The following annotation will allow guests
|
||||
* to open the page as well
|
||||
*
|
||||
* @PublicPage
|
||||
*/
|
||||
public function get() {
|
||||
// Work your magic
|
||||
@@ -139,7 +142,10 @@ you also implement the ``verifyPassword`` and ``showShare`` functions.
|
||||
}
|
||||
|
||||
/**
|
||||
* Your normal controller function
|
||||
* Your normal controller function. The following annotation will allow guests
|
||||
* to open the page as well
|
||||
*
|
||||
* @PublicPage
|
||||
*/
|
||||
public function get() {
|
||||
// Work your magic
|
||||
|
||||
Reference in New Issue
Block a user