Explorar o código

fix: add ts icon asset

Sven Fehler hai 1 mes
pai
achega
8c1c074a9a
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      endpoints/static.js

+ 6 - 0
endpoints/static.js

@@ -114,6 +114,12 @@ const call = (req, res, url, params, format) => {
             allowEncoding = false;
             mimeType = "image/svg+xml";
             break;
+        case "typescript-icon":
+            filePath = `${settings.documentation.dirPath}static/external/typescript.svg`;
+            statusCode = 200;
+            allowEncoding = false;
+            mimeType = "image/svg+xml";
+            break;
         default:
             requestedFile = "fallback_err_404";
             filePath = settings.documentation.error404path;