firstcommit
This commit is contained in:
0
Modules/ContactUs/routes/.gitkeep
Normal file
0
Modules/ContactUs/routes/.gitkeep
Normal file
19
Modules/ContactUs/routes/api.php
Normal file
19
Modules/ContactUs/routes/api.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register API routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| is assigned the "api" middleware group. Enjoy building your API!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware(['auth:sanctum'])->prefix('v1')->name('api.')->group(function () {
|
||||
Route::get('contactus', fn (Request $request) => $request->user())->name('contactus');
|
||||
});
|
38
Modules/ContactUs/routes/web.php
Normal file
38
Modules/ContactUs/routes/web.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\ContactUs\app\Http\Controllers\ContactUsController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::group(
|
||||
[
|
||||
'prefix' => 'apanel',
|
||||
'middleware' => ['auth'],
|
||||
'as' => 'cms.',
|
||||
],
|
||||
function () {
|
||||
Route::group(
|
||||
[
|
||||
'prefix' => 'cms',
|
||||
'as' => 'contactUs.',
|
||||
'controller' => 'ContactUsController',
|
||||
],
|
||||
function () {
|
||||
Route::get('contact-us', 'index')->name('index');
|
||||
Route::post('contact-us/{uuid}', 'show')->name('show');
|
||||
// Route::post('contact-us/reply/{uuid}', 'replyToMail')->name('replyMail');
|
||||
Route::delete('contact-us/{uuid}/delete', 'destroy')->name('delete');
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user