2024-07-04 12:04:41 +03:00
|
|
|
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
|
|
|
|
use \App\Services\{Router, Auth, DB, Json};
|
|
|
|
use \App\Controllers\ExceptionRegister;
|
|
|
|
use \App\Core\Page;
|
2024-07-04 13:20:40 +03:00
|
|
|
use \App\Controllers\Api\{Login, Register};
|
2024-07-05 07:26:39 +03:00
|
|
|
use \App\Controllers\Api\Images\{Upload};
|
2024-07-05 11:13:28 +03:00
|
|
|
use \App\Controllers\Api\Images\Rate as PhotoVote;
|
2024-07-13 02:47:11 +03:00
|
|
|
use \App\Controllers\Api\Images\Compress as PhotoCompress;
|
2024-07-06 09:57:51 +03:00
|
|
|
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;
|
2024-07-05 15:03:35 +03:00
|
|
|
use \App\Controllers\Api\Profile\Update as ProfileUpdate;
|
2024-07-04 12:50:26 +03:00
|
|
|
class ApiController
|
2024-07-04 12:04:41 +03:00
|
|
|
{
|
|
|
|
|
|
|
|
|
2024-07-04 12:50:26 +03:00
|
|
|
public static function login() {
|
|
|
|
return new Login();
|
2024-07-04 12:04:41 +03:00
|
|
|
}
|
2024-07-04 13:20:40 +03:00
|
|
|
public static function register() {
|
|
|
|
return new Register();
|
|
|
|
}
|
2024-07-05 07:26:39 +03:00
|
|
|
public static function upload() {
|
|
|
|
return new Upload();
|
|
|
|
}
|
2024-07-05 11:13:28 +03:00
|
|
|
public static function photovote() {
|
|
|
|
return new PhotoVote();
|
|
|
|
}
|
2024-07-05 11:51:14 +03:00
|
|
|
public static function photocomment() {
|
|
|
|
return new PhotoComment();
|
|
|
|
}
|
2024-07-06 09:57:51 +03:00
|
|
|
public static function photocommentvote() {
|
|
|
|
return new PhotoCommentVote();
|
|
|
|
}
|
2024-07-05 11:51:14 +03:00
|
|
|
public static function photocommentload() {
|
|
|
|
return new PhotoCommentLoad();
|
|
|
|
}
|
2024-07-05 15:03:35 +03:00
|
|
|
public static function updateprofile() {
|
|
|
|
return new ProfileUpdate();
|
|
|
|
}
|
2024-07-13 02:47:11 +03:00
|
|
|
public static function photocompress() {
|
|
|
|
return new PhotoCompress();
|
|
|
|
}
|
2024-07-05 11:13:28 +03:00
|
|
|
|
2024-07-04 12:04:41 +03:00
|
|
|
|
|
|
|
}
|