Newer
Older
flow-task / server / App / routes_map.php
@eugene-sukhodolskiy eugene-sukhodolskiy 20 days ago 544 bytes restruct
<?php

namespace App;

use \App\Controller\AuthController;

function init_auth($router) {
	$router -> linking("GET", "signup", function(){
		$auth_controller = new AuthController();
		$auth_controller -> signup();
	});


	$router -> linking("GET", "signin", function(){
		$auth_controller = new AuthController();
		$auth_controller -> signin();
	});

	$router -> linking("GET", "signout", function(){
		$auth_controller = new AuthController();
		$auth_controller -> signout();
	});
}

function init_routes_map($router) {
	init_auth($router);
}