iowebsite/staff/load_tasks.php

6 lines
178 B
PHP
Raw Normal View History

2024-01-29 00:02:02 -05:00
<?php
// Load tasks from the flat-file database (tasks.json)
$tasks = file_exists("tasks.json") ? json_decode(file_get_contents("tasks.json")) : [];
2024-01-29 00:02:02 -05:00
echo json_encode($tasks);
?>