-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
27 lines (23 loc) · 939 Bytes
/
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
<?php
session_start();
require 'Routing.php';
$path = trim($_SERVER['REQUEST_URI'], '/');
$path = parse_url( $path, PHP_URL_PATH);
Router::get('', 'DefaultController');
Router::get('projects', 'ProjectController');
Router::post('login', 'SecurityController');
Router::post('addProject', 'ProjectController');
Router::post('register', 'SecurityController');
Router::post('search', 'ProjectController');
Router::post('profile', 'ProjectController');
Router::get('like', 'ProjectController');
Router::get('dislike', 'ProjectController');
Router::post('settings', 'DefaultController');
Router::post('logout', 'SecurityController');
Router::post('sortLike', 'ProjectController');
Router::post('sortKcal', 'ProjectController');
Router::post('sortTime', 'ProjectController');
Router::post('removeProject', 'ProjectController');
Router::post('admin', 'SecurityController');
Router::post('removeUser', 'SecurityController');
Router::run($path);