wah.moe/routes/web.php
Frankie B 8482a98ca6
feat: add guestbook with rate limiting (#6)
* Re-add guestbook w/ rate limiting
* Add guestbook to navbar
2023-07-16 01:49:09 +01:00

44 lines
1.1 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', function () {
return View::make('pages.home');
});
Route::get('/bookmarks', function () {
return View::make('pages.bookmarks');
});
Route::get('/projects', function () {
return View::make('pages.projects');
});
Route::get('/calculators', function () {
return View::make('pages.calculators');
});
Route::get('/computers', function () {
return View::make('pages.computers');
});
Route::get('/guestbook', 'App\Http\Controllers\GuestbookController@guestbook')
->name('guestbook');
Route::post('/guestbook', 'App\Http\Controllers\GuestbookController@guestbookpost')
->name('guestbookPost')
->middleware('rate_limit');