nativegallery-weryskok/app/Controllers/ApiController.php
2024-07-20 23:50:52 +03:00

60 lines
No EOL
1.8 KiB
PHP

<?php
namespace App\Controllers;
use \App\Services\{Router, Auth, DB, Json};
use \App\Controllers\ExceptionRegister;
use \App\Core\Page;
use \App\Controllers\Api\{Login, Register};
use \App\Controllers\Api\Subscribe as SubscribeUser;
use \App\Controllers\Api\Images\{Upload};
use \App\Controllers\Api\Images\Rate as PhotoVote;
use \App\Controllers\Api\Images\Compress as PhotoCompress;
use \App\Controllers\Api\Images\CheckAll as PhotoCheckAll;
use \App\Controllers\Api\Images\Comments\Create as PhotoComment;
use \App\Controllers\Api\Images\Comments\Load as PhotoCommentLoad;
use \App\Controllers\Api\Images\Comments\Rate as PhotoCommentVote;
use \App\Controllers\Api\Profile\Update as ProfileUpdate;
use \App\Controllers\Api\Admin\Images\SetVisibility as AdminPhotoSetVisibility;
class ApiController
{
public static function login() {
return new Login();
}
public static function register() {
return new Register();
}
public static function upload() {
return new Upload();
}
public static function photovote() {
return new PhotoVote();
}
public static function photocomment() {
return new PhotoComment();
}
public static function photocommentvote() {
return new PhotoCommentVote();
}
public static function photocommentload() {
return new PhotoCommentLoad();
}
public static function updateprofile() {
return new ProfileUpdate();
}
public static function photocompress() {
return new PhotoCompress();
}
public static function adminsetvis() {
return new AdminPhotoSetVisibility();
}
public static function subscribeuser() {
return new SubscribeUser();
}
public static function checkallphotos() {
return new PhotoCheckAll();
}
}