Skip to content

Commit d3cd78b

Browse files
Add default web routes file
1 parent f6490bc commit d3cd78b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/inertiajs-stubs/routes/web.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
use Inertia\Inertia;
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Web Routes
8+
|--------------------------------------------------------------------------
9+
|
10+
| Here is where you can register web routes for your application. These
11+
| routes are loaded by the RouteServiceProvider within a group which
12+
| contains the "web" middleware group. Now create something great!
13+
|
14+
*/
15+
16+
Route::get('/', function () {
17+
return Inertia::render('Welcome');
18+
});
19+
20+
Route::get('/about', function () {
21+
return Inertia::render('About');
22+
});
23+
24+
Route::get('/contact', function () {
25+
return Inertia::render('Contact');
26+
});

0 commit comments

Comments
 (0)