Oleg K %!s(int64=4) %!d(string=hai) anos
pai
achega
377d6bc89a
Modificáronse 2 ficheiros con 17 adicións e 1 borrados
  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');
+    }
+
+}