File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,11 @@ public static function main(array $args = [])
1616 $ builder ->configureServices (function ($ services ) {
1717 $ services ->addMvc ();
1818 $ services ->addAntiforgery ();
19- $ services ->addAuthentication ();
20- $ services ->addAuthorisation ();
19+ $ services ->addAuthentication (function ($ builder ) {
20+ $ builder ->addCookie ();
21+ });
22+
23+ $ services ->addAuthorization ();
2124 });
2225
2326 $ host = $ builder ->build ();
@@ -33,7 +36,7 @@ public static function main(array $args = [])
3336 $ app ->useAuthentication ();
3437
3538 $ app ->useEndpoint (function ($ routes ) {
36- $ routes ->mapRoute ("default " , " {controller=Home}/{action=Index}/{id?} " );
39+ $ routes ->mapRoute ("{controller=Home}/{action=Index}/{id?} " );
3740 });
3841 });
3942 }
You can’t perform that action at this time.
0 commit comments