nativegallery/app/Controllers/ApiController.php

36 lines
905 B
PHP
Raw Normal View History

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-05 11:51:14 +03:00
use \App\Controllers\Api\Images\Comment as PhotoComment;
use \App\Controllers\Api\Images\CommentsLoad as PhotoCommentLoad;
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();
}
public static function photocommentload() {
return new PhotoCommentLoad();
}
2024-07-05 11:13:28 +03:00
2024-07-04 12:04:41 +03:00
}