2019-07-08 07:17:33 +02:00
|
|
|
<?php
|
|
|
|
|
2022-06-21 11:59:51 +02:00
|
|
|
use App\Http\Controllers\Contact;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2019-07-08 07:17:33 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2022-06-21 11:59:43 +02:00
|
|
|
Route::middleware('api_secret_check')->group(function () {
|
2022-06-21 11:59:51 +02:00
|
|
|
Route::post('api/v1/contact/login', [Contact\LoginController::class, 'apiLogin']);
|
2019-07-08 07:17:33 +02:00
|
|
|
});
|
|
|
|
|
2022-06-21 11:59:43 +02:00
|
|
|
Route::middleware('contact_db', 'api_secret_check', 'contact_token_auth')->prefix('api/v1/contact')->name('api.contact.')->group(function () {
|
2022-06-21 11:59:51 +02:00
|
|
|
Route::get('invoices', [Contact\InvoiceController::class, 'index']); // name = (clients. index / create / show / update / destroy / edit
|
2020-03-21 06:37:30 +01:00
|
|
|
});
|