Skip to content

Commit d0d94ba

Browse files
committed
update
1 parent 4df5f3b commit d0d94ba

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

api.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,20 +1325,6 @@ public function success($result): Response
13251325
return new Response(Response::OK, $result);
13261326
}
13271327

1328-
public function redirect(String $url): Response
1329-
{
1330-
$response = new Response(Response::FOUND, '');
1331-
$response->addHeader('Location', $url);
1332-
return $response;
1333-
}
1334-
1335-
public function html(String $url): Response
1336-
{
1337-
$response = new Response(Response::FOUND, '');
1338-
$response->addHeader('Location', $url);
1339-
return $response;
1340-
}
1341-
13421328
}
13431329

13441330
// file: src/Tqdev/PhpCrudApi/Database/ColumnConverter.php
@@ -5457,8 +5443,6 @@ public static function fromString(String $request): Request
54575443
class Response
54585444
{
54595445
const OK = 200;
5460-
const MOVED_PERMANENTLY = 301;
5461-
const FOUND = 302;
54625446
const UNAUTHORIZED = 401;
54635447
const FORBIDDEN = 403;
54645448
const NOT_FOUND = 404;
@@ -5546,7 +5530,6 @@ public function __toString(): String
55465530
'username' => 'php-crud-api',
55475531
'password' => 'php-crud-api',
55485532
'database' => 'php-crud-api',
5549-
'middlewares' => 'xsrf',
55505533
]);
55515534
$request = new Request();
55525535
$api = new Api($config);

src/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
'username' => 'php-crud-api',
1212
'password' => 'php-crud-api',
1313
'database' => 'php-crud-api',
14-
'middlewares' => 'xsrf',
1514
]);
1615
$request = new Request();
1716
$api = new Api($config);

0 commit comments

Comments
 (0)