2023-05-13 18:17:50 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2023-05-27 17:12:29 +00:00
|
|
|
This endpoint will get & edit specific tables from the db
|
|
|
|
<REQUEST METHOD>:
|
|
|
|
- <action>
|
2023-05-13 18:17:50 +00:00
|
|
|
|
2023-05-27 17:12:29 +00:00
|
|
|
GET:
|
|
|
|
- show (show individual tables)
|
|
|
|
- list (list table names)
|
2023-05-13 18:17:50 +00:00
|
|
|
|
2023-05-27 17:12:29 +00:00
|
|
|
*/
|
2023-05-21 19:14:28 +00:00
|
|
|
|
2023-05-27 17:12:29 +00:00
|
|
|
require('../Libraries/table/get.php');
|
2023-05-21 19:14:28 +00:00
|
|
|
|
|
|
|
|
2023-05-27 17:12:29 +00:00
|
|
|
# Setting up DB connection
|
|
|
|
$GLOBALS['db'] = new SQLite3("../../webcron.db");
|
2023-05-21 19:14:28 +00:00
|
|
|
|
2023-05-27 17:12:29 +00:00
|
|
|
switch ($_SERVER['REQUEST_METHOD']) {
|
|
|
|
case 'GET':
|
|
|
|
get_main();
|
|
|
|
break;
|
|
|
|
case 'POST':
|
|
|
|
break;
|
2023-05-21 19:14:28 +00:00
|
|
|
}
|
2023-05-27 17:12:29 +00:00
|
|
|
|
2023-05-13 18:17:50 +00:00
|
|
|
|
|
|
|
?>
|