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