1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00
invoiceninja/routes/shop.php

15 lines
726 B
PHP
Raw Normal View History

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;
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']);
});