diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-21 11:07:26 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-21 23:57:48 +0300 |
| commit | 366a79dc4eb59cea74c273690b635026a4974ed9 (patch) | |
| tree | dfce86462c6fa8051cf44b8000ca5d3b91f9522e /docs/index.html | |
| parent | fix: frontend serving (diff) | |
| download | lphub-366a79dc4eb59cea74c273690b635026a4974ed9.tar.gz lphub-366a79dc4eb59cea74c273690b635026a4974ed9.tar.bz2 lphub-366a79dc4eb59cea74c273690b635026a4974ed9.zip | |
fix: unable to serve swagger on prod
Diffstat (limited to 'docs/index.html')
| -rw-r--r-- | docs/index.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..8d12274 --- /dev/null +++ b/docs/index.html | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="en"> | ||
| 3 | <head> | ||
| 4 | <meta charset="utf-8" /> | ||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| 6 | <meta | ||
| 7 | name="description" | ||
| 8 | content="SwaggerIU" | ||
| 9 | /> | ||
| 10 | <title>SwaggerUI</title> | ||
| 11 | <link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@4.4.1/swagger-ui.css" /> | ||
| 12 | </head> | ||
| 13 | <body> | ||
| 14 | <div id="swagger-ui"></div> | ||
| 15 | <script src="https://unpkg.com/swagger-ui-dist@4.4.1/swagger-ui-bundle.js" crossorigin></script> | ||
| 16 | <script src="https://unpkg.com/swagger-ui-dist@4.4.1/swagger-ui-standalone-preset.js" crossorigin></script> | ||
| 17 | <script> | ||
| 18 | window.onload = () => { | ||
| 19 | window.ui = SwaggerUIBundle({ | ||
| 20 | url: 'https://lp.ardapektezol.com/swagger.json', | ||
| 21 | dom_id: '#swagger-ui', | ||
| 22 | }); | ||
| 23 | }; | ||
| 24 | </script> | ||
| 25 | </body> | ||
| 26 | </html> \ No newline at end of file | ||