<?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); }