Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11724395
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/app/Http/routes.php b/app/Http/routes.php
index 5f2d930..e20d78f 100644
--- a/app/Http/routes.php
+++ b/app/Http/routes.php
@@ -1,42 +1,42 @@
<?php
use Nasqueron\Notifications\Config\Features;
use Nasqueron\Notifications\Config\Reporting\ConfigReport;
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
return view('welcome');
});
// Allows to external tool to ping your instalation and know if the site is up.
Route::get('/status', function() {
- return "ALIVE";
+ return "ALIVE";
});
// Allows to external tool to check the current configuration.
if (Features::isEnabled('GetConfig')) {
Route::get('/config', function() {
$report = new ConfigReport();
return Response::json($report);
});
}
// Gate controllers
if (Features::isEnabled('Gate')) {
foreach (Config::get('gate.controllers') as $controller) {
$controllerRoute = '/gate/' . $controller . '/';
$controllerClass = "Gate\\${controller}GateController";
Route::get($controllerRoute . '{door?}', "$controllerClass@onGet");
Route::post($controllerRoute . '{door}', "$controllerClass@onPost");
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 14:31 (16 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2990978
Default Alt Text
(1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment