Skip to content

Commit

Permalink
Merge pull request #31 from lara-zeus/clean-routes
Browse files Browse the repository at this point in the history
clean up routes
  • Loading branch information
atmonshi authored Jul 2, 2024
2 parents 679ab31 + 21efcf9 commit c753c6c
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions stubs/routes/web.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,7 @@
<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

if (app()->isLocal()) {
//include 'local.php';
}

Route::domain('{domain}.' . config('zeus-tartarus.central_domain'))
->get('/a', function () {
dd(9);
})
->name('tenant.home');

Route::view('/', 'site.home');

Route::post('logout', function (Request $request) {
auth()->logout();

$request->session()->invalidate();

$request->session()->regenerateToken();

return redirect('/');
})
->name('logout');

Route::get('lang/{lang}', function ($lang) {
if (array_key_exists($lang, config('app.locales'))) {
session()->put('current_lang', $lang);
Expand Down

0 comments on commit c753c6c

Please sign in to comment.