Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused blade views and bundled files #68

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions package.json

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion resources/js/app.js

This file was deleted.

32 changes: 0 additions & 32 deletions resources/js/bootstrap.js

This file was deleted.

140 changes: 0 additions & 140 deletions resources/views/welcome.blade.php

This file was deleted.

7 changes: 5 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

use App\Http\Responses\ApiErrorResponse;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Route;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

/*
|--------------------------------------------------------------------------
Expand All @@ -13,6 +16,6 @@
|
*/

Route::get('/', function () {
return view('welcome');
Route::fallback(function () {
return new ApiErrorResponse('Ressource not found', status: Response::HTTP_NOT_FOUND);
});
4 changes: 2 additions & 2 deletions tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class ExampleTest extends TestCase
/**
* A basic test example.
*/
public function test_the_application_returns_a_successful_response(): void
public function test_the_application_returns_a_not_found_response(): void
{
$response = $this->get('/');

$response->assertStatus(200);
$response->assertStatus(404);
}
}
11 changes: 0 additions & 11 deletions vite.config.js

This file was deleted.