3
0

fix paths for _gen

This commit is contained in:
Tit Petric
2018-07-01 00:11:23 +02:00
parent 725738f05a
commit 1f4edbd46c

View File

@@ -3,13 +3,13 @@
error_reporting(E_ALL^E_NOTICE);
include("../docs/vendor/autoload.php");
include("docs/vendor/autoload.php");
$tpl = new Monotek\MiniTPL\Template;
$tpl->set_compile_location("/tmp", true);
$tpl->add_default("newline", "\n");
$apis = json_decode(file_get_contents("../docs/src/spec.json"), true);
$apis = json_decode(file_get_contents("docs/src/spec.json"), true);
foreach ($apis as $k => $v) {
foreach ($v['apis'] as $kk => $vv) {
$vv['path'] = "/" . $vv['name'];