mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 07:34:03 +02:00
docs fix
This commit is contained in:
@@ -6,17 +6,17 @@ currentMenu: router
|
||||
|
||||
Router service is using well-known [FastRoute](https://github.com/nikic/FastRoute) library. There is no need to change this service unless you're extending the script.
|
||||
|
||||
The router uses unique query parameter ```?r=``` to pass the route info. Because of this feature, this (single-page) application does not require rewrite rules, .htaccess or similar tweaks.
|
||||
The router uses unique query parameter `?r=` to pass the route info. Because of this feature, this (single-page) application does not require rewrite rules, .htaccess or similar tweaks.
|
||||
|
||||
Example routes:
|
||||
|
||||
- ```http://example.com/?r=/some/route¶m1=val1¶m2=val2```
|
||||
- ```http://example.com/?r=/user/{user_id}¶m1=val1```
|
||||
- `http://example.com/?r=/some/route¶m1=val1¶m2=val2`
|
||||
- `http://example.com/?r=/user/{user_id}¶m1=val1`
|
||||
|
||||
|
||||
## Routes file
|
||||
|
||||
Routes file is located here ```/backend/Controllers/routes.php```. Each route in the routes array looks like this:
|
||||
Routes file is located here `backend/Controllers/routes.php` Each route in the routes array looks like this:
|
||||
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user