Skip to content

Commit ed7b7e5

Browse files
authored
add <?php and isolation route code
1 parent e5bfec1 commit ed7b7e5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/guides/mobile_apps.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ Typically, a mobile application would issue a request from their login screen, p
99
Start by creating a route that would handle the request from the login screen on the mobile device. The device name can be any arbitrary string, but is typically used to identify the device the request is being made from, like "Johns iPhone 13".
1010

1111
```php
12-
1312
// Routes.php
1413
$routes->post('auth/token', '\App\Controllers\Auth\LoginController::mobileLogin');
14+
```
15+
16+
```php
17+
<?php
18+
19+
// app/Controllers/Auth/LoginController.php
1520

16-
// LoginController.php
1721
namespace App\Controllers\Auth;
1822

1923
use App\Controllers\BaseController;

0 commit comments

Comments
 (0)