Skip to content

Commit

Permalink
2023-11-13 1.30.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecc-business-account committed Nov 13, 2023
1 parent 10978c5 commit bc595d0
Show file tree
Hide file tree
Showing 7 changed files with 2,439 additions and 2,427 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ Example "path/{controller}" and "path/{controller}/{id}", the system will consid
Where **default** is the optional default value.
* **{controller}**: The controller (class) to call
* **{action}**: The action (method) to call
* **{verb}**: The verb of the action (GET/POST,etc)
* **{verb}**: The verb of the action (GET/POST,etc.)
* **{type}**: The type (value)
* **{module}**: The module (value)
* **{id}**: The id (value)
Expand Down Expand Up @@ -822,7 +822,7 @@ The binary **routeonecli** is located in the vendor/bin folder

![docs/cli2.jpg](docs/cli2.jpg)

Pending means that the operation is pending to do or it requires something to configure.
Pending means that the operation is pending to do, or it requires something to configure.

* enter **configure**

Expand Down Expand Up @@ -859,6 +859,9 @@ Now, lets configure the paths


## Changelog
* 2023-11-13 1.30.1
* fixed a bug with fetch() when the url fetched is null
* updated .htaccess, so it works better with different situations.
* 2023-05-08 1.30
* addPath() now allows to specify a middleware.
* 2023-04-02 1.29
Expand Down
32 changes: 21 additions & 11 deletions examples/.htaccess
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ router.php?req=$1 [L,QSA]

</IfModule>


<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
# based in Laravel .htaccess
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Send Requests To router
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^ index.php [L]
RewriteRule ^(.*)$ router.php?req=$1 [L]
</IfModule>
Loading

0 comments on commit bc595d0

Please sign in to comment.