mirror of
https://gitee.com/ShopeX/ECShopX
synced 2026-08-06 03:56:24 +08:00
25 lines
1.2 KiB
PHP
25 lines
1.2 KiB
PHP
<?php
|
|
|
|
$api = app('Dingo\Api\Routing\Router');
|
|
|
|
$api->version('v1', function ($api) {
|
|
$api->group(['middleware' => ['jwt.auth']], function ($api) {
|
|
// 虚拟试衣
|
|
$api->group(['prefix' => 'outfit'], function ($api) {
|
|
$api->post('generate', 'ShopexAIBundle\Http\Api\V1\Action\OutfitAnyoneController@generate');
|
|
$api->get('status/{task_id}', 'ShopexAIBundle\Http\Api\V1\Action\OutfitAnyoneController@checkStatus');
|
|
});
|
|
|
|
// 会员模特管理
|
|
$api->group(['prefix' => 'member/outfit'], function ($api) {
|
|
// 模特管理
|
|
$api->post('model', 'ShopexAIBundle\Http\Api\V1\Action\MemberOutfitController@createModel');
|
|
$api->put('model/{id}', 'ShopexAIBundle\Http\Api\V1\Action\MemberOutfitController@updateModel');
|
|
$api->delete('model/{id}', 'ShopexAIBundle\Http\Api\V1\Action\MemberOutfitController@deleteModel');
|
|
$api->get('models', 'ShopexAIBundle\Http\Api\V1\Action\MemberOutfitController@getModels');
|
|
|
|
// 试衣记录
|
|
$api->get('logs', 'ShopexAIBundle\Http\Api\V1\Action\MemberOutfitController@getLogs');
|
|
});
|
|
});
|
|
});
|