Retrieve feed, add to database (#4)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user