Oleg K 4 年之前
父節點
當前提交
377d6bc89a
共有 2 個文件被更改,包括 17 次插入1 次删除
  1. 1 1
      config/web.php
  2. 16 0
      controllers/ProfileController.php

+ 1 - 1
config/web.php

@@ -67,7 +67,7 @@ $config = [
                 [
                     'class' => 'yii\rest\UrlRule',
                     'controller' => ['api/user'],
-                    'except' => [ 'index', 'view', 'delete' ],
+
                     'extraPatterns' => [
                         'POST add' => 'bulk-add',
                     ],

+ 16 - 0
controllers/ProfileController.php

@@ -0,0 +1,16 @@
+<?php
+
+
+namespace app\controllers;
+
+
+use yii\web\Controller;
+
+class ProfileController extends Controller
+{
+
+    public function actionIndex(){
+        return $this->render('index');
+    }
+
+}