浏览代码

Create route to serve manifest.json.

Lee Morgan 1 年之前
父节点
当前提交
b0f089abe0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      routes/other.js

+ 1 - 0
routes/other.js

@@ -3,4 +3,5 @@ export default (app)=>{
     app.get("/index.js", (req, res)=>res.sendFile(`${global.cwd}/views/build/index.js`));
     app.get("/index.css", (req, res)=>res.sendFile(`${global.cwd}/views/build/index.css`));
     app.get("/logo.svg", (req, res)=>res.sendFile(`${global.cwd}/views/logo.svg`));
+    app.get("/manifest.json", (req, res)=>res.sendFile(`${global.cwd}/views/manifest.json`));
 }