26 lines
1.2 KiB
PHP
26 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\Api\v1\CustomerController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::prefix('v1')->middleware(['auth:api', 'check-brand'])->group(function() {
|
|
Route::get('/customer/{id}', [CustomerController::class, 'show']);
|
|
Route::post('/customer/create', [CustomerController::class, 'store']);
|
|
Route::post('/customer/update/{id}', [CustomerController::class, 'update']);
|
|
Route::post('/customer/login', [CustomerController::class, 'authenticate']);
|
|
Route::post('/customer/change-password', [CustomerController::class, 'changePassword']);
|
|
Route::get('/customer/activate/{id}', [CustomerController::class, 'activateAccount']);
|
|
Route::get('/customer/change-optin/{id}', [CustomerController::class, 'changeOptin']);
|
|
Route::get('/customer/delete/{id}', [CustomerController::class, 'deleteUser']);
|
|
});
|