nativegallery/app/Controllers/Api/Images/CheckAll.php

14 lines
300 B
PHP
Raw Normal View History

2024-07-20 23:50:52 +03:00
<?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');
}
}
?>