nativegallery/app/Controllers/Api/Images/CheckAll.php
2024-07-20 23:50:52 +03:00

13 lines
300 B
PHP

<?php
namespace App\Controllers\Api\Images;
use \App\Services\{Auth, DB};
class CheckAll {
public function __construct() {
DB::query('UPDATE followers_notifications SET checked=1 WHERE follower_id=:id', array(':id'=>Auth::userid()));
header('Location: /fav_authors');
}
}
?>