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.
pixelfed/app/Http/Controllers/MobileController.php

32 lines
845 B
PHTML

<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Concerns\ManagesCachedPages;
9 months ago
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)
{
9 months ago
$page = Cache::remember('site:terms', now()->addDays(120), function () {
return $this->cachedPage('/site/terms');
});
9 months ago
6 days ago
return View::make('mobile.terms')->with(['page' => $page])->render();
}
public function privacy(Request $request)
{
9 months ago
$page = Cache::remember('site:privacy', now()->addDays(120), function () {
return $this->cachedPage('/site/privacy');
});
9 months ago
6 days ago
return View::make('mobile.privacy')->with(['page' => $page])->render();
}
}