<?php
// admin

Route::name('admin.')
    ->prefix(ADMIN_PREFIX)
    ->middleware(['admin'])
    ->namespace('\MicroweberPackages\Product\Http\Controllers\Admin')
    ->group(function () {
        Route::resource('product', 'ProductController',['except' => ['show']]);
    });

// front end
Route::name('api.product.')->prefix('api/product')
    ->namespace('\MicroweberPackages\Product\Http\Controllers')
    ->group(function () {
        Route::get('quick-view', 'ProductQuickViewController@view')->name('quick-view');
    });

