1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Http/Controllers/ImportController.php

21 lines
327 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
{
2020-05-26 03:30:18 +00:00
use Import\Instagram, Import\Mastodon;
2018-11-04 03:51:51 +00:00
2020-05-26 03:30:18 +00:00
public function __construct()
{
$this->middleware('auth');
2019-03-17 23:00:46 +00:00
2020-05-26 03:30:18 +00:00
if(config('pixelfed.import.instagram.enabled') != true) {
abort(404, 'Feature not enabled');
}
}
2018-11-04 03:51:51 +00:00
}