Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

Commit 3f1bd78

Browse files
committed
Preparation for master release.
1 parent d2db9a6 commit 3f1bd78

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

config/app.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,18 @@
124124

125125
'log_level' => env('APP_LOG_LEVEL', 'debug'),
126126

127+
/*
128+
|--------------------------------------------------------------------------
129+
| App Specific Config
130+
|--------------------------------------------------------------------------
131+
|
132+
|
133+
*/
134+
135+
'mappings' => [
136+
'enabled' => env('MAPPINGS_ENABLED', false)
137+
],
138+
127139
/*
128140
|--------------------------------------------------------------------------
129141
| Autoloaded Service Providers

routes/api.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Illuminate\Http\Request;
4+
use Illuminate\Support\Facades\Config;
45

56
/*
67
|--------------------------------------------------------------------------
@@ -33,16 +34,19 @@
3334

3435
Route::get("/search/suggestions", "API\SearchController@suggestions");
3536

36-
Route::get("/mappings/get", "API\MappingsController@get");
37+
if (Config::get("app.mappings.enabled") === true)
38+
{
39+
Route::get("/mappings/get", "API\MappingsController@get");
3740

38-
Route::get("/mappings/add", "API\MappingsController@add");
41+
Route::get("/mappings/add", "API\MappingsController@add");
3942

40-
Route::get("/mappings/vote", "API\MappingsController@vote");
43+
Route::get("/mappings/vote", "API\MappingsController@vote");
44+
}
4145

4246
Route::get("/imdb/top250", "API\IMDBController@top250");
4347

4448
Route::get("/imdb/popular", "API\IMDBController@popular");
4549

4650
Route::get("/imdb/list", "API\IMDBController@user_list");
4751

48-
Route::get("/maintenance/activate", "DBMaintenanceController@activate");
52+
//Route::get("/maintenance/activate", "DBMaintenanceController@activate");

0 commit comments

Comments
 (0)