webcron-site/api/table.php

28 lines
420 B
PHP
Raw Normal View History

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