Skip to content
Snippets Groups Projects
Commit 94424366 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Removed databsae population route

parent 36a1fcb8
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ $user = new Nette\Security\User($storage, $authenticator);
$app->hook('slim.before.router', function () use ($app, $user) {
$url = $app->request()->getPathInfo();
$non_user_urls = array('/login', '/register', '/populate');
$non_user_urls = array('/login', '/register');
if (!in_array($url, $non_user_urls) && !$user->isLoggedIn())
$app->redirect(ROOT_URL . '/login');
......@@ -82,8 +82,5 @@ require 'routes/register.php';
require 'routes/user.php';
require 'routes/match.php';
// XXX: debug code
require 'populate.php';
$view->replace(compact('app', 'config', 'user'));
$app->run();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment