1
0
Fork 0
pixelfed/app/Http/Controllers/ImportController.php

21 lines
363 B
PHP
Raw Normal View History

2018-11-04 03:51:51 +00:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ImportController extends Controller
{
use Import\Instagram, Import\Mastodon;
public function __construct()
{
$this->middleware('auth');
2019-03-17 23:00:46 +00:00
if(config('pixelfed.import.instagram.enabled') != true) {
abort(404, 'Feature not enabled');
}
2018-11-04 03:51:51 +00:00
}
}