Not found page with html and moved utils into index and split http requests to separate files.

Static dir for hosting html files.

Helper function for loading HTML.

Changed location where openapi.html is generated and updated dockerfile
This commit is contained in:
Martin Berg Alstad
2024-06-20 13:13:26 +02:00
parent 6df5152061
commit 2dd361ce7e
15 changed files with 537 additions and 82 deletions

17
http/index.http Normal file
View File

@ -0,0 +1,17 @@
### GET index page
GET {{url}}
### GET OpenAPI page
GET {{url}}/openapi
### GET should fallback to 404 page
GET {{url}}/something-that-does-not-exist
> {%
client.test("Response status is 404", () => {
client.assert(response.status === 404, "Response status is not 404");
});
%}