You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
435 B

  1. <?php
  2. namespace api\controllers;
  3. use antgoods\goods\models\ars\Goods;
  4. use yii\rest\Controller;
  5. /**
  6. * @author iron
  7. * @email weiriron@gmail.com
  8. */
  9. class SiteController extends Controller
  10. {
  11. public function actions()
  12. {
  13. return [
  14. 'error' => [
  15. 'class' => 'yii\web\ErrorAction',
  16. ],
  17. ];
  18. }
  19. public function actionIndex()
  20. {
  21. return Goods::findOne(1);
  22. }
  23. }