@athenna/http 4.12.1 → 4.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -66,7 +66,8 @@ export class HttpKernel {
|
|
|
66
66
|
debug('Not able to register swagger-ui plugin. Install @fastify/swagger-ui package.');
|
|
67
67
|
const swaggerUiConfig = Config.get('http.swagger.ui', {});
|
|
68
68
|
if (!swaggerUiConfig.logo) {
|
|
69
|
-
const
|
|
69
|
+
const __dirname = Module.createDirname(import.meta.url);
|
|
70
|
+
const image = new File(resolve(__dirname, '..', '..', 'resources', 'images', 'athenna-logo.png'));
|
|
70
71
|
swaggerUiConfig.logo = {
|
|
71
72
|
type: 'image/png',
|
|
72
73
|
content: image.getContentSync()
|