24
24
25
25
$ app = new Application (dirname (__DIR__ ), $ config );
26
26
27
- $ app ->on (Application::EVENT_BEFORE_REQUEST , function (){
27
+ /* $app->on(Application::EVENT_BEFORE_REQUEST, function(){
28
28
echo "Before request from second installation";
29
- });
29
+ });*/
30
30
31
31
$ app ->router ->get ('/ ' , [SiteController::class, 'home ' ]);
32
32
$ app ->router ->get ('/register ' , [SiteController::class, 'register ' ]);
33
33
$ app ->router ->post ('/register ' , [SiteController::class, 'register ' ]);
34
34
$ app ->router ->get ('/login ' , [SiteController::class, 'login ' ]);
35
+ $ app ->router ->get ('/login/{id} ' , [SiteController::class, 'login ' ]);
35
36
$ app ->router ->post ('/login ' , [SiteController::class, 'login ' ]);
36
37
$ app ->router ->get ('/logout ' , [SiteController::class, 'logout ' ]);
37
38
$ app ->router ->get ('/contact ' , [SiteController::class, 'contact ' ]);
38
39
$ app ->router ->get ('/about ' , [AboutController::class, 'index ' ]);
39
40
$ app ->router ->get ('/profile ' , [SiteController::class, 'profile ' ]);
41
+ // /profile/{id}
42
+ // /profile/13
43
+ // \/profile\/\w+
40
44
41
- $ app ->run ();
45
+ // /profile/{id}/zura
46
+ // /profile/12/zura
47
+
48
+ // /{id}
49
+ $ app ->run ();
0 commit comments