Skip to content

Commit 193b10d

Browse files
committed
docs: remove unneeded / from routes
1 parent 46a6da7 commit 193b10d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/guides/api_hmac_keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `generateHmacToken()` method requires a name for the token. These are free s
2424
the user/device the token was generated from/for, like 'Johns MacBook Air'.
2525

2626
```php
27-
$routes->get('/hmac/token', static function () {
27+
$routes->get('hmac/token', static function () {
2828
$token = auth()->user()->generateHmacToken(service('request')->getVar('token_name'));
2929

3030
return json_encode(['key' => $token->secret, 'secretKey' => $token->secret2]);

docs/guides/api_tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Tokens are issued with the `generateAccessToken()` method on the user. This retu
1111
The `generateAccessToken()` method requires a name for the token. These are free strings and are often used to identify the user/device the token was generated from, like 'Johns MacBook Air'.
1212

1313
```php
14-
$routes->get('/access/token', static function() {
14+
$routes->get('access/token', static function() {
1515
$token = auth()->user()->generateAccessToken(service('request')->getVar('token_name'));
1616

1717
return json_encode(['token' => $token->raw_token]);

0 commit comments

Comments
 (0)