2016-07-21 22:01:57 +08:00
|
|
|
<?php
|
|
|
|
|
2016-08-28 10:05:21 +08:00
|
|
|
namespace App\Http\Controllers;
|
2016-07-21 22:01:57 +08:00
|
|
|
|
2016-09-04 15:35:12 +08:00
|
|
|
class HomeController extends Controller
|
2016-07-21 22:01:57 +08:00
|
|
|
{
|
2018-07-20 14:42:43 +08:00
|
|
|
public function index()
|
2016-07-21 22:01:57 +08:00
|
|
|
{
|
2018-07-20 14:42:43 +08:00
|
|
|
return view('index')->with('user', auth()->user())
|
2019-04-19 19:32:15 +08:00
|
|
|
->with('transparent_navbar', option('transparent_navbar', false))
|
2017-08-05 14:35:28 +08:00
|
|
|
->with('home_pic_url', option('home_pic_url') ?: config('options.home_pic_url'));
|
2016-07-21 22:01:57 +08:00
|
|
|
}
|
2019-05-01 10:14:14 +08:00
|
|
|
|
|
|
|
public function apiRoot()
|
|
|
|
{
|
|
|
|
return response()->json([
|
|
|
|
'blessing_skin' => config('app.version'),
|
|
|
|
'spec' => 0,
|
|
|
|
'copyright' => bs_copyright(),
|
|
|
|
'site_name' => option('site_name'),
|
|
|
|
]);
|
|
|
|
}
|
2016-07-21 22:01:57 +08:00
|
|
|
}
|