1
0
forked from metin2/web

Added static content

This commit is contained in:
2023-07-23 01:14:14 +03:00
commit c048171282
475 changed files with 21967 additions and 0 deletions

19
routes/api.php Normal file
View File

@ -0,0 +1,19 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});

18
routes/channels.php Normal file
View File

@ -0,0 +1,18 @@
<?php
use Illuminate\Support\Facades\Broadcast;
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});

19
routes/console.php Normal file
View File

@ -0,0 +1,19 @@
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');

85
routes/web.php Normal file
View File

@ -0,0 +1,85 @@
<?php
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', fn () => view('main/home'));
Route::prefix('main')->group(function() {
Route::get('/home', fn () => view('main/home'));
Route::get('/media', fn () => view('main/media'));
Route::get('/download', fn () => view('main/download'));
Route::get('/highscore', fn () => view('main/highscore'));
Route::get('/guildhighscore', fn () => view('main/guildhighscore'));
# The game
Route::get('/thegame', fn () => view('main/thegame/thegame'));
Route::get('/characterclasses', fn () => view('main/thegame/characterclasses'));
Route::get('/empires', fn () => view('main/thegame/empires'));
# How-to / tutorial
Route::get('/howto', fn () => view('main/howto/howto'));
Route::get('/tutorials', fn () => view('main/howto/tutorials'));
Route::get('/tutorials/createcharacter', fn () => view('main/howto/createcharacter'));
Route::get('/tutorials/introduction', fn () => view('main/howto/introduction'));
# Community
Route::get('/community', fn () => view('main/community/community'));
Route::get('/code-of-conduct', fn () => view('main/community/code-of-conduct'));
# Security
Route::get('/account', fn () => view('main/security/account'));
Route::get('/pc', fn () => view('main/security/pc'));
Route::get('/cheat', fn () => view('main/security/cheat'));
Route::get('/help', fn () => view('main/security/help'));
});
Route::prefix('user')->group(function() {
Route::get('/register', fn () => view('user/register'));
Route::get('/login', fn () => view('user/login'));
// will autocomplete the username
Route::get('/login/{username}', fn ($username) => view('user/login'));
Route::get('/logout', fn () => view('user/logout'));
Route::get('/administration', fn () => view('user/administration'));
Route::get('/characters', fn () => view('user/characters'));
Route::get('/passwordlostrequest', fn () => view('user/passwordlostrequest'));
Route::get('/passwordlost/{username}/{hash}', fn ($username, $hash) => view('user/passwordlost-expired'));
Route::get('/resendack', fn () => view('user/resendack'));
Route::get('/emailchangeaccept/{username}/{hash}', fn ($username, $hash) => view('user/emailchangeaccept'));
Route::get('/emailchangecancel/{username}/{hash}', fn ($username, $hash) => view('user/emailchangecancel'));
Route::get('/changeemailcode/{username}/{hash}', fn ($username, $hash) => view('user/changeemailcode'));
Route::get('/generatecode/{userId}/{hash}', fn ($userId, $hash) => view('user/generatecode'));
Route::get('/lostpasswordcode/{userId}/{hash}', fn ($userId, $hash) => view('user/lostpasswordcode'));
});
Route::prefix('contest')->group(function() {
Route::get('/', fn () => Redirect::to('/contest/info', 301));
Route::get('/info', fn () => view('contest/info'));
Route::get('/voting', fn () => view('contest/voting'));
Route::get('/awards', fn () => view('contest/awards'));
});
Route::prefix('legal')->group(function() {
Route::get('/terms', fn () => view('legal/terms'));
Route::get('/privacy', fn () => view('legal/privacy'));
Route::get('/imprint', fn () => view('legal/imprint'));
});