Browse Source

API clear main.local

master
Error202 4 years ago
parent
commit
97b04b9d0d
  1. 5
      api/config/main-local.example.php
  2. 29
      api/config/main.php
  3. 5
      api/config/params-local.example.php
  4. 8
      api/config/test-local.example.php

5
api/config/main-local.example.php

@ -0,0 +1,5 @@
<?php
return [
];

29
api/config/main.php

@ -136,35 +136,6 @@ return [
'POST oauth2/<action:\w+>' => 'oauth2/rest/<action>',
'GET cards' => 'card/index',
'GET card/main/<id:\d+>' => 'card/main',
'GET card/contacts/<id:\d+>' => 'card/contacts',
'GET card/education/<id:\d+>' => 'card/education',
'GET card/photos/<id:\d+>' => 'card/photos',
'GET card/biography/<id:\d+>' => 'card/biography',
'GET card/company/<id:\d+>' => 'card/company',
'PUT card/main/<id:\d+>' => 'card/main-update',
'PUT card/contacts/<id:\d+>' => 'card/contacts-update',
'PUT card/education/<id:\d+>' => 'card/education-update',
'PUT card/photos/<id:\d+>' => 'card/photos-update',
'PUT card/biography/<id:\d+>' => 'card/biography-update',
'PUT card/company/<id:\d+>' => 'card/company-update',
'GET card/backgrounds' => 'card/backgrounds',
'POST card' => 'card/create',
'POST card/sort' => 'card/sort',
'DELETE card/<id:\d+>' => 'card/delete',
'PUT card/<id:\d+>' => 'card/update',
'GET card/order/<card_id:\d+>' => 'card/order',
'POST card/upload-file' => 'card/upload-file',
'POST card/delete-file' => 'card/delete-file',
'POST card/photo-process' => 'card/photo-process',
'GET card/block-toggle/<card_id:\d+>/<block_id:\d+>' => 'card/block-toggle',
'POST auth/signup' => 'auth/signup/request',
'POST auth/reset/request' => 'auth/reset/request',
'POST auth/reset/check' => 'auth/reset/check',

5
api/config/params-local.example.php

@ -0,0 +1,5 @@
<?php
return [
];

8
api/config/test-local.example.php

@ -0,0 +1,8 @@
<?php
return yii\helpers\ArrayHelper::merge(
require __DIR__ . '/../../common/config/test-local.php',
require __DIR__ . '/main.php',
require __DIR__ . '/main-local.php',
require __DIR__ . '/test.php',
[]
);
Loading…
Cancel
Save