1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

Fix random action apidoc comment

This commit is contained in:
Starbeamrainbowlabs 2018-02-14 22:46:31 +00:00
parent 5b20df5b3d
commit c355c89b30
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -8,12 +8,12 @@ register_module([
"code" => function() {
global $settings;
/**
* @api {get} ?action=random[&mode={mode}] Redirects to a random page.
* @apiName RawSource
* @api {get} ?action=random[&mode={modeName}] Redirects to a random page
* @apiName Random
* @apiGroup Page
* @apiPermission Anonymous
*
* @apiParam {string} mode The view mode to redirect to. This parameter is basically just passed through to the direct - it works in the same way as the mode parameter on the _view_ action does.
* @apiParam {string} mode The view mode to redirect to. This parameter is basically just passed through to the direct. It works in the same way as the mode parameter on the view action does.
*/
add_action("random", function() {