feat : config
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Controller\Api;
|
||||
|
||||
use App\Controller\AbstractController;
|
||||
use App\Service\Api\Good\AddStapleFoodInfoService;
|
||||
use App\Service\Api\Good\MealListService;
|
||||
use App\Service\Api\Good\OptionalListService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
@@ -34,4 +35,15 @@ class GoodController extends AbstractController
|
||||
{
|
||||
return (new MealListService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
#[RequestMapping(path: 'add_staple_food',methods: 'GET')]
|
||||
public function add_staple_food()
|
||||
{
|
||||
return (new AddStapleFoodInfoService)->handle();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user