mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
841 B
PHP
32 lines
841 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Http\Controllers\Concerns\ManagesCachedPages;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Cache;
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
class MobileController extends Controller
|
|
{
|
|
use ManagesCachedPages;
|
|
|
|
public function terms(Request $request)
|
|
{
|
|
$page = Cache::remember('site:terms', now()->addDays(120), function () {
|
|
return $this->cachedPage('/site/terms');
|
|
});
|
|
|
|
return View::make('mobile.terms')->with(compact('page'))->render();
|
|
}
|
|
|
|
public function privacy(Request $request)
|
|
{
|
|
$page = Cache::remember('site:privacy', now()->addDays(120), function () {
|
|
return $this->cachedPage('/site/privacy');
|
|
});
|
|
|
|
return View::make('mobile.privacy')->with(compact('page'))->render();
|
|
}
|
|
}
|