Skip to content

Commit

Permalink
relink
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Mar 18, 2024
1 parent fc5ad44 commit 8f1b677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ composer install battis/user-session

## Use

See [example](example) for sample implementation. The highlights are:
See [example](https://github.com/battis/restful-api/tree/main/examples/user-session) for sample implementation. The highlights are:

### Add `UserSession\Dependencies` definitions

Expand Down Expand Up @@ -88,7 +88,7 @@ Add a user session that provides access to the currently logged-in user to an en
```php
/** @var Slim\App $app */
$app
->get("/home", Example\PageRenderer::class)
->get('/home', Example\PageRenderer::class)
->add(Battis\UserSession\Middleware\Session::class);
```

Expand All @@ -97,6 +97,6 @@ Restrict access to an endpoint (or group) to authenticated users by adding the `
```php
/** @var Slim\App $app */
$app
->get("/protected", Example\PageRenderer::class)
->get('/protected', Example\PageRenderer::class)
->add(Battis\UserSession\Middleware\RequireAuthentication::class);
```

0 comments on commit 8f1b677

Please sign in to comment.