<?php namespace App; function init_routes_map($router) { $router -> linking("GET", "signup", function(){ $uname = $_GET["username"]; $password = $_GET["password"]; $auth = new Auth(); if($auth -> user_name_is_exists($uname)) { return error("signup", "User name already exists"); } $auth -> signup($uname, $password); return }); }