浏览代码

fix: add ts icon asset

Sven Fehler 1 月之前
父节点
当前提交
8c1c074a9a
共有 1 个文件被更改,包括 6 次插入0 次删除
  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;