This commit is contained in:
+1
-4
@@ -20,8 +20,7 @@ class Controller extends PhpObject
|
||||
'add_position',
|
||||
'admin_set',
|
||||
'admin_create',
|
||||
'admin_delete',
|
||||
'build_geojson'
|
||||
'admin_delete'
|
||||
);
|
||||
|
||||
private Spot $oSpot;
|
||||
@@ -130,7 +129,6 @@ class Controller extends PhpObject
|
||||
return match($sAction) {
|
||||
'markers' => $this->oSpot->getMarkers(),
|
||||
'last_update' => $this->oSpot->getLastUpdate(),
|
||||
'geojson' => $this->oSpot->getProjectGeoJson(),
|
||||
'next_feed' => $this->oSpot->getNextFeed($this->asReq['id']),
|
||||
'new_feed' => $this->oSpot->getNewFeed($this->asReq['id']),
|
||||
'add_post' => $this->oSpot->addPost($this->asReq['name'], $this->asReq['content']),
|
||||
@@ -158,7 +156,6 @@ class Controller extends PhpObject
|
||||
'admin_create' => $this->oSpot->createAdminSettings($this->asReq['type']),
|
||||
'admin_delete' => $this->oSpot->deleteAdminSettings($this->asReq['type'], $this->asReq['id_entity']),
|
||||
'sql' => $this->oSpot->getDbBuildScript(),
|
||||
'build_geojson' => $this->oSpot->buildGeoJSON($this->asReq['name']),
|
||||
default => Spot::getJsonResult(false, Spot::NOT_FOUND)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user