Skip to content
Snippets Groups Projects

Resolve "Data ingress for context information for tiki-wiki"

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -13,7 +13,7 @@ function context($url, $domain, $content) {
header('Content-Type: application/json');
}
if (substr( $url, 0, 4 ) == "/get") {
if (substr( $url, 0, 4 ) == "/get" || substr( $url, 0, 7 ) == "/update") {
$url = $url . "/" . $content['smartDataContextId'];
}
@@ -45,6 +45,7 @@ function context($url, $domain, $content) {
}
try {
if (array_key_exists('docs', $_GET)) {
echo context("/docs", null, null);
} else if (array_key_exists('openapi', $_GET)) {
Loading