2020-07-28 13:19:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2020-07-28 13:58:15 +02:00
|
|
|
Route::group(['middleware' => ['company_key_db','locale'], 'prefix' => 'api/v1'], function () {
|
|
|
|
|
|
|
|
Route::get('shop/products', 'Shop\ProductController@index');
|
2020-07-28 15:24:01 +02:00
|
|
|
Route::post('shop/clients', 'Shop\ClientController@store');
|
|
|
|
Route::post('shop/invoices', 'Shop\InvoiceController@store');
|
2020-07-28 13:58:15 +02:00
|
|
|
Route::get('shop/client/{contact_key}', 'Shop\ClientController@show');
|
|
|
|
Route::get('shop/invoice/{invitation_key}', 'Shop\InvoiceController@show');
|
|
|
|
Route::get('shop/product/{product_key}', 'Shop\ProductController@show');
|
2020-08-05 04:12:38 +02:00
|
|
|
Route::get('shop/profile', 'Shop\ProfileController@show');
|
2020-07-28 13:19:51 +02:00
|
|
|
});
|