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