update api getTotalFeature

This commit is contained in:
dongpd 2020-12-24 15:46:02 +07:00
parent 22f3a3f650
commit 18ffc9c6f4

View File

@ -513,6 +513,10 @@ class ListManagementController extends Controller {
} }
} }
public function actionGetTotalFeature() {
return ListManagement::find()->count();
}
public function actionUpdateFeature() { public function actionUpdateFeature() {
if (Yii::$app->request->isAjax) { if (Yii::$app->request->isAjax) {
Yii::$app->response->format = "json"; Yii::$app->response->format = "json";