pianello-api/app/Http/Controllers/ColorSchemeController.php
Ale Gallo b91cf0cbde Committing laravel + api (part 1)
committing part of the laravel system with templating files and api implementation.
2023-11-10 15:54:41 +01:00

23 lines
442 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\RedirectResponse;
class ColorSchemeController extends Controller
{
/**
* Show specified view.
*
* @param \Illuminate\Http\Request $request
*/
public function switch(Request $request): RedirectResponse
{
session([
'color_scheme' => $request->color_scheme
]);
return back();
}
}