-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
29 lines (25 loc) · 1.04 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
require_once "autoloader.php";
$path = trim($_SERVER['REQUEST_URI'], "/");
$path = parse_url($path, PHP_URL_PATH);
Router::get("loginPage", "SecurityController");
Router::get("registerPage", "SecurityController");
Router::get("login", "SecurityController");
Router::get("register", "SecurityController");
Router::get("garden", "PhotoController");
Router::get("search", "UserController");
Router::get("friends", "UserController");
Router::get("removeFriend", "UserController");
Router::get("addFriend", "UserController");
Router::get("addPhoto", "PhotoController");
Router::get("searchUsersWithoutFriends", "UserController");
Router::get("searchPhotos", "PhotoController");
Router::get("logout", "SecurityController");
Router::get("pending", "UserController");
Router::get("acceptFriend", "UserController");
Router::get("removeUser", "UserController");
Router::get("userPhotos", "PhotoController");
Router::get("searchFriends", "UserController");
Router::get("removeUsers", "UserController");
Router::get("searchUsers", "UserController");
Router::run($path);