From cbd11e7d03e77d73cf507ed87e25927490385269 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 23 Feb 2022 11:25:41 +0100 Subject: [PATCH] Add @publicpage to get() method tags Signed-off-by: Joas Schilling --- developer_manual/digging_deeper/publicpage.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/developer_manual/digging_deeper/publicpage.rst b/developer_manual/digging_deeper/publicpage.rst index 31f8e32d1..80c09eccb 100644 --- a/developer_manual/digging_deeper/publicpage.rst +++ b/developer_manual/digging_deeper/publicpage.rst @@ -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