firstcommit
This commit is contained in:
0
Modules/Setting/routes/.gitkeep
Normal file
0
Modules/Setting/routes/.gitkeep
Normal file
19
Modules/Setting/routes/api.php
Normal file
19
Modules/Setting/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('setting', fn (Request $request) => $request->user())->name('setting');
|
||||
});
|
23
Modules/Setting/routes/web.php
Normal file
23
Modules/Setting/routes/web.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Setting\app\Http\Controllers\SettingController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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' => []], function () {
|
||||
Route::get('setting/', [SettingController::class, 'index'])->name('setting.index');
|
||||
Route::post('setting/generalStoreOrUpdate', [SettingController::class, 'generalStoreOrUpdate'])->name('setting.general.storeOrUpdate');
|
||||
Route::post('setting/connectionStoreOrUpdate', [SettingController::class, 'connectionStoreOrUpdate'])->name('setting.connection.storeOrUpdate');
|
||||
Route::post('setting/seoStoreOrUpdate', [SettingController::class, 'seoStoreOrUpdate'])->name('setting.seo.storeOrUpdate');
|
||||
Route::post('setting/additionalStoreOrUpdate', [SettingController::class, 'additionalStoreOrUpdate'])->name('setting.additional.storeOrUpdate');
|
||||
});
|
Reference in New Issue
Block a user