vendor and env first commit

This commit is contained in:
2025-03-28 08:52:46 +01:00
parent f8388bc81b
commit 8f26283832
10976 changed files with 1349952 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application.
| Enjoy building your API!
|
*/
Route::group(['middleware' => 'auth'], function () {
Route::apiResource('/announcements', 'AnnouncementsController')
->except('show')
->names('announcements.api');
Route::get('announcements/{announcementId}', 'AnnouncementsController@show');
Route::post('announcements/read', 'ReadAnnouncementsController@index');
});
+21
View File
@@ -0,0 +1,21 @@
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application.
| Now create something great!
|
*/
Route::group(['middleware' => ['auth', 'verified']], function () {
Route::get('announcements/list', 'AnnouncementListController@index')
->name('announcements.list');
Route::post('announcements/read', 'ReadAnnouncementsController@index')
->name('announcements.read');
Route::resource('announcements', 'AnnouncementsController');
});