Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Cowin committed Nov 28, 2024
2 parents eba6335 + 71e31b9 commit f94f34f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Continuous Integration

on: ['push', 'pull_request']

permissions:
contents: write

jobs:
continuous-integration:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -29,5 +32,10 @@ jobs:
- name: Pint
run: pint

- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Pint Fixes'

- name: PHPStan
run: phpstan analyse app/ --error-format=github
21 changes: 11 additions & 10 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

Route::middleware([

'auth:sanctum',
]

)->get('/user',
function (Request $request) {
return

Route::middleware([
'auth:sanctum'])->get('/user', function (Request $request) {
return
$request
->user()
;
}

$request
->user();
}

);

Route::get('/test', function () {
return
'test';

return 'test';
});

0 comments on commit f94f34f

Please sign in to comment.