Skip to content

Commit

Permalink
Updated middleware doc url
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Sep 25, 2024
1 parent 958c806 commit ae89b8a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ features and examples such as:

* Pages rendered by a [template renderer](https://samuel-gfeller.ch/docs/Template-Rendering)
with layout and versioned assets
* The loading of elements from the database (users) via Ajax
* The loading example elements from the database (users) via Ajax
* The creation, modification, and deletion of users with validation
* Extensive integration testing
* An API endpoint
* Integration testing
* API endpoint
* Dark / light theme switch

This skeleton template is a stripped-down version of the
Expand Down
2 changes: 1 addition & 1 deletion config/middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use SlimErrorRenderer\Middleware\NonFatalErrorHandlingMiddleware;

// Slim middlewares are LIFO (last in, first out) so when responding, the order is backwards
// https://samuel-gfeller.ch/docs/Slim-Middleware#order-of-execution
// https://samuel-gfeller.ch/docs/Slim-Middlewares#order-of-execution
return function (App $app) {
$app->addBodyParsingMiddleware();

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Middleware/CorsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$response = $handler->handle($request);
}
// Add response headers in post-processing before the response is sent
// https://samuel-gfeller.ch/docs/Slim-Middleware#order-of-execution
// https://samuel-gfeller.ch/docs/Slim-Middlewares#order-of-execution
$response = $response
->withHeader('Access-Control-Allow-Credentials', 'true')
->withHeader('Access-Control-Allow-Origin', $this->allowedOrigin ?? '')
Expand Down
2 changes: 1 addition & 1 deletion templates/home/home.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
Injection</a></li>
<li><a target="_blank" href="https://samuel-gfeller.ch/docs/Slim-Routing">Slim-Routing</a>
</li>
<li><a target="_blank" href="https://samuel-gfeller.ch/docs/Slim-Middleware">Slim Middleware</a>
<li><a target="_blank" href="https://samuel-gfeller.ch/docs/Slim-Middlewares">Slim Middlewares</a>
</li>
<li><a target="_blank"
href="https://samuel-gfeller.ch/docs/Single-Action-Controller">Action</a>
Expand Down

0 comments on commit ae89b8a

Please sign in to comment.