Closed opawilly closed 2 months ago
we use a haproxy with replace-path to manage multiple backend http-request replace-path /app(/)?(.*) /\2
http-request replace-path /app(/)?(.*) /\2
"openapi": "3.0.0", "servers": [ { "url": "/api" } ], ...
after server restart the json looks ok
"servers": [ { "url": "http://localhost/app/api" } ],
after site refresh
"servers": [ { "url": "http://localhost/app/app/api" } ],
if i change $validator->base_url($c->req->url->to_abs->path($c->url_for($validator->base_url->path))); to $validator->base_url($c->req->url->to_abs->path($c->url_for($openapi->validator->base_url->path))); all work fine
$validator->base_url($c->req->url->to_abs->path($c->url_for($validator->base_url->path)));
$validator->base_url($c->req->url->to_abs->path($c->url_for($openapi->validator->base_url->path)));
Would you mind opening a pull request for this?
we use a haproxy with replace-path to manage multiple backend
http-request replace-path /app(/)?(.*) /\2
after server restart the json looks ok
after site refresh
if i change
$validator->base_url($c->req->url->to_abs->path($c->url_for($validator->base_url->path)));
to$validator->base_url($c->req->url->to_abs->path($c->url_for($openapi->validator->base_url->path)));
all work fine