Skip to content

Commit 17118c4

Browse files
committed
#3 update doc openapi + #10 custom configDataset
1 parent d245abb commit 17118c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Controller/api/InitApi.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class InitApi
1111
{
1212
public function getStructure(): array
1313
{
14-
$sql01Station = file_get_contents(__DIR__ . '/../../sql/01.station.sql');
15-
$sql02StationStatus = file_get_contents(__DIR__ . '/../../sql/02.station.status.sql');
16-
$sql03Velo = file_get_contents(__DIR__ . '/../../sql/03.velo.sql');
14+
$sql01Station = file_get_contents(__DIR__ . '/../../../sql/01.station.sql');
15+
$sql02StationStatus = file_get_contents(__DIR__ . '/../../../sql/02.station.status.sql');
16+
$sql03Velo = file_get_contents(__DIR__ . '/../../../sql/03.velo.sql');
1717

1818
$db = (new DatabaseSqlite())->getManager();
1919
$db->exec($sql01Station);
@@ -78,7 +78,7 @@ public function getData(): array
7878

7979
public function copyConfig(): array
8080
{
81-
copy(__DIR__ . '/../../docker/configDataset.json', __DIR__ . '/../../var/configDataset.json');
81+
copy(__DIR__ . '/../../../docker/configDataset.json', __DIR__ . '/../../../var/configDataset.json');
8282

8383
return [
8484
"status" => "success",

0 commit comments

Comments
 (0)