mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-27 10:16:47 +00:00
20 lines
327 B
PHP
20 lines
327 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
class ImportController extends Controller
|
|
{
|
|
use Import\Instagram, Import\Mastodon;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->middleware('auth');
|
|
|
|
if(config('pixelfed.import.instagram.enabled') != true) {
|
|
abort(404, 'Feature not enabled');
|
|
}
|
|
}
|
|
|
|
}
|