Permalink
Browse files

Update index.php

  • Loading branch information...
1 parent c903451 commit c68456039ea8755aa0152431862b0765db1a1265 @nezamy committed on GitHub Jan 5, 2017
Showing with 2 additions and 26 deletions.
  1. +2 −26 index.php
View
@@ -2,33 +2,9 @@
require 'system/startup.php';
$route = $app->route;
-$route->any('/', 'App\test@index')->as('home');
-// $route->any('/', ['App\test', 'index'])->as('home2');
-$route->any('/about', function(){
- pre('home');
-})->as('about');
-
-$route->group('/admin', function()
-{
- $this->any('/', function(){
- pre('dashboard');
- })->as('admin.dash');
-
- $this->get('user', function(){
- pre('user');
- })->as('admin.user');
-});
-
-//
-// $route->get('/admin/{one}?:([0-9]+)/{two}?:title', function($w){
-// pre($this);
-// // pre($this['two']);
-// // pre($w);
-// });
-
-$route->any('/admin/*', function(){
- pre('admin error');
+$route->any('/', function(){
+ echo 'Hello World';
});
$route->end();

0 comments on commit c684560

Please sign in to comment.