aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/core/routes/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/core/routes/routes.php')
-rwxr-xr-xmain/app/sprinkles/core/routes/routes.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/app/sprinkles/core/routes/routes.php b/main/app/sprinkles/core/routes/routes.php
new file mode 100755
index 0000000..3598b7e
--- /dev/null
+++ b/main/app/sprinkles/core/routes/routes.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * UserFrosting (http://www.userfrosting.com)
+ *
+ * @link https://github.com/userfrosting/UserFrosting
+ * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
+ */
+
+global $app;
+$config = $app->getContainer()->get('config');
+
+$app->get('/', 'UserFrosting\Sprinkle\Core\Controller\CoreController:pageIndex')
+ ->add('checkEnvironment')
+ ->setName('index');
+
+$app->get('/about','UserFrosting\Sprinkle\Core\Controller\CoreController:pageAbout')->add('checkEnvironment');
+
+$app->get('/alerts', 'UserFrosting\Sprinkle\Core\Controller\CoreController:jsonAlerts');
+
+$app->get('/legal', 'UserFrosting\Sprinkle\Core\Controller\CoreController:pageLegal');
+
+$app->get('/privacy', 'UserFrosting\Sprinkle\Core\Controller\CoreController:pagePrivacy');
+
+$app->get('/' . $config['assets.raw.path'] . '/{url:.+}', 'UserFrosting\Sprinkle\Core\Controller\CoreController:getAsset');