Had to fix namespacing issue with the table api endpoint.
This commit is contained in:
parent
81533b93fe
commit
e107baf3ab
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace table;
|
||||
require("class.php");
|
||||
use table\Table;
|
||||
function get_main () {
|
||||
$db = $GLOBALS["db"];
|
||||
/*
|
||||
|
@ -10,11 +10,15 @@ GET:
|
||||
|
||||
*/
|
||||
|
||||
require('../Libraries/table/get.php');
|
||||
|
||||
namespace table;
|
||||
use SQLite3;
|
||||
$root = $_SERVER['DOCUMENT_ROOT'];
|
||||
$GLOBALS['db'] = new SQLite3("../../webcron.db");
|
||||
require("$root/Libraries/table/get.php");
|
||||
|
||||
|
||||
# Setting up DB connection
|
||||
$GLOBALS['db'] = new SQLite3("../../webcron.db");
|
||||
|
||||
switch ($_SERVER['REQUEST_METHOD']) {
|
||||
case 'GET':
|
||||
|
Loading…
Reference in New Issue
Block a user