g6
This commit is contained in:
1 parent
565c1b9911
commit
28490ce8b3
36 files changed
+587
-179
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
require_once './utils/url_handler.php';
|
||||
require_once './utils/couch.php';
|
||||
|
||||
|
||||
$path_info = new TurtlePathInfo();
|
||||
$path_info->content = "./files/";
|
||||
|
||||
$url_obj = TurtleURLObject::create_from_server(false, false);
|
||||
|
||||
if (str_starts_with($url_obj->url, "couchdb")) {
|
||||
$couchDB = new CouchDB("./data/couchdb.json", "./data/def_data.json", $url_obj);
|
||||
$couchDB->execute();
|
||||
} else {
|
||||
$url_obj->handle_request($path_info);
|
||||
}
|
||||
Reference in new issue
Block a user