Add @publicpage to get() method tags

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2022-02-23 11:25:41 +01:00
parent f53e0faca0
commit cbd11e7d03

View File

@@ -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