mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	 57d7d876b7
			
		
	
	
		57d7d876b7
		
			
		
	
	
	
	
		
			
			* add possibility to use strapi on a non-root base url path * fix documentation password form * use server.url and admin.url in config Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * update doc proxy Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * move server.url location in config Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * refacto Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * add possibility to put relative urls Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * allow '/' as an admin url + refacto Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * update yarn.lock Signed-off-by: Pierre Noël <petersg83@gmail.com> * refacto Signed-off-by: Pierre Noël <petersg83@gmail.com> * Remove default proxy option Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com> * fix github provider Signed-off-by: Pierre Noël <petersg83@gmail.com> * fix github login Signed-off-by: Pierre Noël <petersg83@gmail.com> * Remove files that should be here Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com> Co-authored-by: Pierre Noël <pierre.noel@strapi.io> Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable File
		
	
	
	
	
| <!-- HTML for static distribution bundle build --><!DOCTYPE html><html lang="en"><head>
 | |
|     <meta charset="UTF-8">
 | |
|     <title>Swagger UI</title>
 | |
|     <link rel="stylesheet" type="text/css" href="<%=backendUrl%>/plugins/documentation/swagger-ui.css">
 | |
|     <link rel="icon" type="image/png" href="<%=backendUrl%>/plugins/documentation/favicon-32x32.png" sizes="32x32">
 | |
|     <link rel="icon" type="image/png" href="<%=backendUrl%>/plugins/documentation/favicon-16x16.png" sizes="16x16">
 | |
|     <style>
 | |
|       html
 | |
|       {
 | |
|         box-sizing: border-box;
 | |
|         overflow: -moz-scrollbars-vertical;
 | |
|         overflow-y: scroll;
 | |
|       }
 | |
| 
 | |
|       *,
 | |
|       *:before,
 | |
|       *:after
 | |
|       {
 | |
|         box-sizing: inherit;
 | |
|       }
 | |
| 
 | |
|       body
 | |
|       {
 | |
|         margin:0;
 | |
|         background: #fafafa;
 | |
|       }
 | |
|     </style>
 | |
|   </head>
 | |
| 
 | |
|   <body>
 | |
|     <div id="swagger-ui"></div>
 | |
|     <script class="custom-swagger-ui">
 | |
|       window.onload = function() {
 | |
|         const ui = SwaggerUIBundle({
 | |
|           url: "https://petstore.swagger.io/v2/swagger.json",
 | |
|           spec: <%=spec%>,
 | |
|           dom_id: '#swagger-ui',
 | |
|           docExpansion: "none",
 | |
|           deepLinking: true,
 | |
|           presets: [
 | |
|             SwaggerUIBundle.presets.apis,
 | |
|             SwaggerUIStandalonePreset,
 | |
|           ],
 | |
|           plugins: [
 | |
|             SwaggerUIBundle.plugins.DownloadUrl,
 | |
|           ],
 | |
|           layout: "StandaloneLayout",
 | |
|         });
 | |
| 
 | |
|         window.ui = ui;
 | |
|       }
 | |
|     </script>
 | |
| 
 | |
|     <script src="<%=backendUrl%>/plugins/documentation/swagger-ui-bundle.js"> </script>
 | |
|     <script src="<%=backendUrl%>/plugins/documentation/swagger-ui-standalone-preset.js"> </script>
 | |
|   </body>
 | |
| </html>
 |