2021-11-29 12:26:54 +02:00
|
|
|
<?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 within a group which
|
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2021-11-29 12:39:04 +02:00
|
|
|
Route::post('posts', [\App\Http\Controllers\PostController::class, 'store']);
|
2021-11-29 12:52:36 +02:00
|
|
|
Route::post('profile', [\App\Http\Controllers\ProfileController::class, 'update'])->middleware('auth');
|
2021-11-29 13:17:49 +02:00
|
|
|
Route::resource('projects', \App\Http\Controllers\ProjectController::class);
|
2021-11-29 12:39:04 +02:00
|
|
|
|
2021-11-29 12:26:54 +02:00
|
|
|
Route::get('/', function () {
|
|
|
|
|
return view('welcome');
|
|
|
|
|
});
|