Skip to content

Commit

Permalink
Definitywne porzucenie wsparcia dla admina
Browse files Browse the repository at this point in the history
  • Loading branch information
bvlinsky committed Apr 11, 2020
1 parent 2fa48ba commit 17c3dc9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 40 deletions.
12 changes: 0 additions & 12 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,8 @@ class Kernel extends HttpKernel
* @var array
*/
protected $middlewareGroups = [
'admin' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],

'api' => [
'throttle:60,1',
\App\Http\Middleware\JsonResponse::class,
\Fruitcake\Cors\HandleCors::class,
\App\Http\Middleware\Language::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
Expand Down Expand Up @@ -78,7 +67,6 @@ class Kernel extends HttpKernel
*/
protected $middlewarePriority = [
\Fruitcake\Cors\HandleCors::class,
\App\Http\Middleware\JsonResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\Authenticate::class,
Expand Down
22 changes: 0 additions & 22 deletions app/Http/Middleware/JsonResponse.php

This file was deleted.

16 changes: 16 additions & 0 deletions app/Http/Requests/Request.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace App\Http\Requests;

class Request extends \Illuminate\Http\Request
{
public function expectcsJson()
{
return true;
}

public function wantsJson()
{
return true;
}
}
1 change: 0 additions & 1 deletion app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function boot()
public function map()
{
$this->mapApiRoutes();
$this->mapAdminRoutes();
}

/**
Expand Down
6 changes: 1 addition & 5 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@

$app = require_once __DIR__ . '/../bootstrap/app.php';

// zmiana na public_html
$app->bind('path.public', function () {
return __DIR__;
});
/*
|--------------------------------------------------------------------------
| Run The Application
Expand All @@ -56,7 +52,7 @@
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
$request = App\Http\Requests\Request::capture()
);

$response->send();
Expand Down

0 comments on commit 17c3dc9

Please sign in to comment.