2020-07-28 13:19:51 +02:00
|
|
|
<?php
|
|
|
|
|
2022-06-21 11:59:51 +02:00
|
|
|
use App\Http\Controllers\Shop;
|
2020-07-28 13:19:51 +02:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2022-06-21 11:59:43 +02:00
|
|
|
Route::middleware('company_key_db', 'locale')->prefix('api/v1')->group(function () {
|
2022-06-21 11:59:51 +02:00
|
|
|
Route::get('shop/products', [Shop\ProductController::class, 'index']);
|
|
|
|
Route::post('shop/clients', [Shop\ClientController::class, 'store']);
|
|
|
|
Route::post('shop/invoices', [Shop\InvoiceController::class, 'store']);
|
|
|
|
Route::get('shop/client/{contact_key}', [Shop\ClientController::class, 'show']);
|
|
|
|
Route::get('shop/invoice/{invitation_key}', [Shop\InvoiceController::class, 'show']);
|
|
|
|
Route::get('shop/product/{product_key}', [Shop\ProductController::class, 'show']);
|
|
|
|
Route::get('shop/profile', [Shop\ProfileController::class, 'show']);
|
2020-09-06 11:38:10 +02:00
|
|
|
});
|