mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
Add apiDoc comment
This commit is contained in:
parent
e6ba31df23
commit
632375417d
1 changed files with 10 additions and 0 deletions
|
@ -317,6 +317,16 @@ register_module([
|
|||
exit(json_encode($result, JSON_PRETTY_PRINT));
|
||||
});
|
||||
|
||||
/**
|
||||
* @api {get} ?action=stas-parse&query={text} Debug search queries
|
||||
* @apiDescription Debug Pepperminty Wiki's understanding of search queries.
|
||||
* If you want something machine-readable, check out the new stas property on the object returned by query-searchindex.
|
||||
* @apiName SearchSTASParse
|
||||
* @apiGroup Search
|
||||
* @apiPermission Anonymous
|
||||
*
|
||||
* @apiParam {string} query The query string to parse.
|
||||
*/
|
||||
add_action("stas-parse", function() {
|
||||
global $settings;
|
||||
|
||||
|
|
Loading…
Reference in a new issue