<?php

// Web routes  for asset.

include('routes.php');


if (Trans::isMultilingual()) {
    Route::group(
        [
            'prefix' => '{trans}',
            'where'  => ['trans' => Trans::keys('|')],
        ],
        function () {
            include('routes.php');

        }
    );
}

// Workflow routes for asset

Route::prefix('{guard}/asset')->group(function () {

    Route::get('/workflow/{asset}/{user}', 'AssetWorkflowController@get')
        ->name('bixo.asset.workflow');
    Route::post('/workflow/{asset}/{user}', 'AssetWorkflowController@post');

    Route::get('/action/{asset}/{user}', 'AssetActionController@get')
        ->name('bixo.asset.action');
    Route::post('/action/{asset}/{user}', 'AssetActionController@post');

});