Retrieve feed, add to database (#4)

This commit is contained in:
2024-04-09 21:16:34 -04:00
parent c89e6af346
commit 5c92c8c7d6
3 changed files with 104 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ Security::verifyUser();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// TODO: get feed, add if new, reject if existing but not owned by this user, update otherwise
$result = Feed::add($_POST['url']);
$feed = [ 'id' => $_POST['id'], 'url' => $_POST['url'] ];
$title = 'TODO';
} else {