diff --git a/example.php b/example.php new file mode 100644 index 0000000..aeeab8e --- /dev/null +++ b/example.php @@ -0,0 +1,25 @@ +withHeaders(['x-proxy' => 'laravel']) + ->withToken('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Imp1YW5AZ21haWwuY29tIiwic2oxNTkwMTkyNTE1fQ.db5AZuw3eSAHqjdaRn9AZX8LPbNAxPmuO8BZlEmIGk4') + ->preserveQuery(true) + ->toHost('http://dockerserver.test','api/proxy'); + +})->where('slug', '([A-Za-z0-9\-\/]+)');