mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-11-15 11:39:13 +03:00
36 lines
No EOL
905 B
PHP
36 lines
No EOL
905 B
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\Images\{Upload};
|
|
use \App\Controllers\Api\Images\Rate as PhotoVote;
|
|
use \App\Controllers\Api\Images\Comment as PhotoComment;
|
|
use \App\Controllers\Api\Images\CommentsLoad as PhotoCommentLoad;
|
|
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 photocommentload() {
|
|
return new PhotoCommentLoad();
|
|
}
|
|
|
|
|
|
} |