{"id":53396,"date":"2024-12-03T10:39:22","date_gmt":"2024-12-03T02:39:22","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53396\/"},"modified":"2024-12-03T10:39:22","modified_gmt":"2024-12-03T02:39:22","slug":"%e4%bd%bf%e7%94%a8-nodejs-%e5%92%8c-expressjs-%e6%9e%84%e5%bb%ba%e7%bd%91%e7%ab%99","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53396\/","title":{"rendered":"\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span>    <\/p>\n<p>\u4e00\u5206\u8015\u8018\uff0c\u4e00\u5206\u6536\u83b7\uff01\u65e2\u7136\u6253\u5f00\u4e86\u8fd9\u7bc7\u6587\u7ae0<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9\u300b<\/span>\uff0c\u5c31\u575a\u6301\u770b\u4e0b\u53bb\u5427\uff01\u6587\u4e2d\u5185\u5bb9\u5305\u542b<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9&#8230;\u5e0c\u671b\u4f60\u80fd\u5728\u9605\u8bfb\u672c\u6587\u540e\uff0c\u80fd\u771f\u771f\u5b9e\u5b9e\u5b66\u5230\u77e5\u8bc6\u6216\u8005\u5e2e\u4f60\u89e3\u51b3\u5fc3\u4e2d\u7684\u7591\u60d1\uff0c\u4e5f\u6b22\u8fce\u5927\u4f6c\u6216\u8005\u65b0\u4eba\u670b\u53cb\u4eec\u591a\u7559\u8a00\u8bc4\u8bba\uff0c\u591a\u7ed9\u5efa\u8bae\uff01\u8c22\u8c22\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241130\/1732925747674a5933c76c9.jpg\" class=\"aligncenter\" title=\"\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9\u63d2\u56fe\" alt=\"\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6587\u6df1\u5165\u4ecb\u7ecd\u4e86\u4f7f\u7528 node.js \u548c express.js \u6784\u5efa\u7f51\u7ad9\u3002 express.js \u662f\u5728 node.js \u4e4b\u4e0a\u521b\u5efa\u5065\u58ee\u4e14\u53ef\u6269\u5c55\u7684 web \u5e94\u7528\u7a0b\u5e8f\u7684\u91cd\u8981\u6846\u67b6\uff0c\u4eca\u5929\u7684\u91cd\u70b9\u5c06\u662f<strong>\u8def\u7531<\/strong>\u3001<strong>\u4e2d\u95f4\u4ef6<\/strong>\u3001<strong>\u6a21\u677f\u5f15\u64ce<\/strong> \u548c <strong>cookie \u4f1a\u8bdd<\/strong>\u3002 <\/p>\n<h3> \u6982\u5ff5\u4eae\u70b9\uff1a <\/h3>\n<ol>\n<li>app.use(\u56de\u8c03)<\/li>\n<li>app.use(\u8def\u5f84\uff0c\u56de\u8c03)<\/li>\n<li>\u83b7\u53d6\u3001\u53d1\u5e03\u3001\u653e\u7f6e\u3001\u5220\u9664<\/li>\n<li>express \u4e2d\u95f4\u4ef6<\/li>\n<li>\u8c03\u7528\u5806\u6808\u4e2d\u7684\u4e0b\u4e00\u4e2a\u4e2d\u95f4\u4ef6<\/li>\n<li>\u4f7f\u7528 express \u8def\u7531\u5668<\/li>\n<li>cookie \u4f1a\u8bdd\u7ba1\u7406\u4e2d\u95f4\u4ef6<\/li>\n<li>\u6a21\u677f\u53d8\u91cf<\/li>\n<li>ejs<\/li>\n<\/ol>\n<h2> 1. app.use(\u56de\u8c03) <\/h2>\n<p>express.js\u4e2d\u7684app.use(callback)\u65b9\u6cd5\u7528\u4e8e\u6302\u8f7d\u4e2d\u95f4\u4ef6\u51fd\u6570\u3002\u8be5\u4e2d\u95f4\u4ef6\u5c06\u9488\u5bf9\u5411\u5e94\u7528\u7a0b\u5e8f\u53d1\u51fa\u7684\u6bcf\u4e2a\u8bf7\u6c42\u8fd0\u884c\uff0c\u65e0\u8bba http \u65b9\u6cd5\u6216 url \u662f\u4ec0\u4e48\u3002 <\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong> \u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u4e2d\u95f4\u4ef6\u9488\u5bf9\u6bcf\u4e2a\u4f20\u5165\u8bf7\u6c42\u8fd0\u884c\u5e76\u5411\u63a7\u5236\u53f0\u8bb0\u5f55\u4e00\u6761\u6d88\u606f\u3002<\/p>\n<pre>const express = require('express'); \nconst app = express();\n\napp.use((req, res, next) =&gt; {\n  console.log('middleware running for every request.');\n  next();\n});\n<\/pre>\n<h2> 2. app.use(\u8def\u5f84\uff0c\u56de\u8c03) <\/h2>\n<p>\u6b64\u65b9\u6cd5\u5141\u8bb8\u60a8\u5728\u7279\u5b9a\u8def\u5f84\u6302\u8f7d\u4e2d\u95f4\u4ef6\u3002\u4ec5\u5f53\u8bf7\u6c42\u4e0e\u6307\u5b9a\u8def\u5f84\u5339\u914d\u65f6\uff0c\u4e2d\u95f4\u4ef6\u624d\u4f1a\u8fd0\u884c\u3002 <\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong> \u5728\u672c\u4f8b\u4e2d\uff0c\u53ea\u6709\u4ee5 \/users \u5f00\u5934\u7684\u8def\u7531\u624d\u4f1a\u89e6\u53d1\u4e2d\u95f4\u4ef6\u3002<\/p>\n<pre>app.use('\/users', (req, res, next) =&gt; {\n  console.log('middleware only for \/users route.');\n  next();\n});\n<\/pre>\n<h2> 3.\u83b7\u53d6\u3001\u53d1\u5e03\u3001\u653e\u7f6e\u3001\u5220\u9664 <\/h2>\n<p>\u8fd9\u4e9b\u65b9\u6cd5\u5141\u8bb8\u60a8\u5728\u7279\u5b9a\u8def\u7531\u4e0a\u5904\u7406\u7279\u5b9a\u7684 http \u65b9\u6cd5\uff08get\u3001post\u3001put\u3001delete \u7b49\uff09\u3002\u60a8\u53ef\u4ee5\u5728\u6b64\u5904\u5b9a\u4e49 web \u5e94\u7528\u7a0b\u5e8f\u7684\u884c\u4e3a\u3002 <\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong>\u6bcf\u79cd\u65b9\u6cd5\u5904\u7406 crud \u64cd\u4f5c\u7684\u4e0d\u540c\u90e8\u5206\uff08\u521b\u5efa\u3001\u8bfb\u53d6\u3001\u66f4\u65b0\u3001\u5220\u9664\uff09\u4ee5\u8fdb\u884c\u7528\u6237\u7ba1\u7406\u3002<\/p>\n<pre>app.get('\/users', (req, ress) =&gt; {\n  res.send('fetching all users');\n});\n\napp.post('\/users', (req, res) =&gt; {\n  res.send('creating a new user');\n});\n\napp.put('\/users\/:id', (req, res) =&gt; {\n  res.send(`updating user with id: ${req.params.id}`);\n});\n\napp.delete('\/users\/:id', (req, res) =&gt; {\n  res.send('deleting user with id: ${req.params.id}`);\n});\n<\/pre>\n<h2> 4. express\u4e2d\u95f4\u4ef6 <\/h2>\n<p>express.js \u4e2d\u7684\u4e2d\u95f4\u4ef6\u51fd\u6570\u53ef\u4ee5\u8bbf\u95ee\u8bf7\u6c42 (req) \u548c\u54cd\u5e94 (res) \u5bf9\u8c61\uff0c\u5e76\u4e14\u5b83\u4eec\u53ef\u4ee5\u6267\u884c\u4ee3\u7801\u3001\u8fdb\u884c\u4fee\u6539\u6216\u7ec8\u6b62\u8bf7\u6c42-\u54cd\u5e94\u5468\u671f\u3002 <\/p>\n<h3> \u4e3b\u8981\u7279\u70b9\uff1a <\/h3>\n<ul>\n<li> <strong>\u6267\u884c\u4ee3\u7801\uff1a<\/strong>\u60a8\u53ef\u4ee5\u6267\u884c\u4efb\u4f55\u903b\u8f91\u6216\u64cd\u4f5c\u3002 <\/li>\n<li> <strong>\u4fee\u6539\u8bf7\u6c42\/\u54cd\u5e94\uff1a<\/strong>\u4e2d\u95f4\u4ef6\u53ef\u4ee5\u66f4\u65b0\u6807\u5934\u3001\u5411 req \u6dfb\u52a0\u6570\u636e\u6216\u4fee\u6539 res \u5bf9\u8c61\u3002 <\/li>\n<li> <strong>\u7ed3\u675f\u8bf7\u6c42-\u54cd\u5e94\u5468\u671f\uff1a<\/strong>\u4e2d\u95f4\u4ef6\u53ef\u4ee5\u5c06\u6570\u636e\u53d1\u9001\u56de\u5ba2\u6237\u7aef\u5e76\u7ed3\u675f\u5468\u671f\u3002 <\/li>\n<\/ul>\n<p><strong>\u4f8b\u5982\uff09<\/strong> \u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u4e2d\u95f4\u4ef6\u5c06\u81ea\u5b9a\u4e49\u6570\u636e\u6dfb\u52a0\u5230\u8bf7\u6c42\u5bf9\u8c61\uff0c\u5e76\u4e14\u8def\u7531\u5904\u7406\u7a0b\u5e8f\u8bbf\u95ee\u5b83\u3002<\/p>\n<pre>app.use((req, res, next) =&gt; {\n  req.customdata = 'some custom data';\n  next();\n});\n\napp.get('\/', (req, res) =&gt; {\n  res.send(`data from middleware: ${req.customdata}`);\n});\n<\/pre>\n<h2> 5. \u8c03\u7528\u4e0b\u4e00\u4e2a\u4e2d\u95f4\u4ef6 <\/h2>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4f7f\u7528 next() \u5c06\u63a7\u5236\u6743\u4f20\u9012\u7ed9\u4e0b\u4e00\u4e2a\u4e2d\u95f4\u4ef6\u6216\u8def\u7531\u5904\u7406\u7a0b\u5e8f\u3002\u5982\u679c\u4e0d\u8c03\u7528 next()\uff0c\u8bf7\u6c42\u5c06\u6302\u8d77\uff0c\u56e0\u4e3a\u5faa\u73af\u4e0d\u4f1a\u7ee7\u7eed\u524d\u8fdb\u3002 <\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong>\u8fd9\u786e\u4fdd\u4e86\u6bcf\u4e2a\u4e2d\u95f4\u4ef6\u90fd\u53ef\u4ee5\u5c06\u63a7\u5236\u6743\u4f20\u9012\u7ed9\u94fe\u4e2d\u7684\u4e0b\u4e00\u4e2a\u3002<\/p>\n<pre>app.use((req, res, next) =&gt; {\n  console.log('first middleware');\n  next();\n});\n\napp.use((req, res, next) =&gt; {\n  console.log('second middlware');\n});\n<\/pre>\n<h2> 6. \u4f7f\u7528 express \u8def\u7531\u5668 <\/h2>\n<p>express router \u662f\u4e00\u4e2a\u5728\u6a21\u5757\u5316\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7ec4\u7ec7\u8def\u7531\u7684\u597d\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5c06\u8def\u7ebf\u5206\u89e3\u4e3a\u66f4\u5c0f\u7684\u3001\u6613\u4e8e\u7ba1\u7406\u7684\u90e8\u5206\u3002<\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong> \u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u8def\u7531\u5668\u5b89\u88c5\u5728 \/users\uff0c\u5bf9 \/users\/profile \u7684\u8bf7\u6c42\u5c06\u7531\u8def\u7531\u5668\u7684\u8def\u7531\u5904\u7406\u3002<\/p>\n<pre>const express = require('express');\nconst router = express.router();\n\nrouter.get('\/profile', (req, res) =&gt; {\n  res.send('user profile');\n});\n\napp.use('\/users', router);\n<\/pre>\n<h2> 7.cookie\u4f1a\u8bdd\u7ba1\u7406\u4e2d\u95f4\u4ef6 <\/h2>\n<p>\u5904\u7406\u4f1a\u8bdd\u548c cookie \u5bf9\u4e8e\u7ba1\u7406\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\u548c\u72b6\u6001\u81f3\u5173\u91cd\u8981\u3002 express.js \u63d0\u4f9b\u4e86\u7ba1\u7406\u4f1a\u8bdd\u6570\u636e\u7684\u4e2d\u95f4\u4ef6\u3002 <\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong> \u4f7f\u7528\u5feb\u901f\u4f1a\u8bdd\uff0c\u6211\u521d\u59cb\u5316\u4e00\u4e2a\u4f1a\u8bdd\u5e76\u8bbe\u7f6e\u4f1a\u8bdd\u6570\u636e\uff0c\u8fd9\u4e9b\u6570\u636e\u53ef\u4ee5\u5728\u6574\u4e2a\u7528\u6237\u4f1a\u8bdd\u671f\u95f4\u8bbf\u95ee\u3002<\/p>\n<pre>const session = require('express-session');\n\napp.use(session({\n  secret: 'mysecret',\n  resave: false,\n  saveuninitialized: true,\n  cookie: { secure: false }\n}));\n\napp.get('\/', (req, res) =&gt; {\n  req.session.user = 'john doe'; \/\/ set session data\n  res.send('session initialized');\n});\n<\/pre>\n<h2> 8. \u6a21\u677f\u53d8\u91cf <\/h2>\n<p>\u4f7f\u7528\u6a21\u677f\u5f15\u64ce\u6e32\u67d3\u89c6\u56fe\u65f6\uff0c\u53ef\u4ee5\u4f20\u9012\u53d8\u91cf\u6765\u52a8\u6001\u751f\u6210\u5185\u5bb9\u3002\u4f8b\u5982\uff0c\u5728 ejs \u4e2d\uff0c\u60a8\u53ef\u4ee5\u5c06\u53d8\u91cf\u4f20\u9012\u7ed9\u89c6\u56fe\u4ee5\u8fdb\u884c\u6e32\u67d3\u3002 <\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong> \u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u6211\u5c06\u6807\u9898\u548c\u6d88\u606f\u53d8\u91cf\u4f20\u9012\u7ed9 ejs \u6a21\u677f\u3002<\/p>\n<pre>app.get('\/', (req, res) =&gt; {\n  res.render('index', { title: 'my website', message: 'hello world' });\n});\n<\/pre>\n<h2> 9.ejs\uff08\u5d4c\u5165\u5f0fjavascript\uff09 <\/h2>\n<p>ejs \u662f\u4e00\u79cd\u6d41\u884c\u7684\u6a21\u677f\u5f15\u64ce\uff0c\u5141\u8bb8\u60a8\u7f16\u5199 html \u5e76\u5c06 javascript \u76f4\u63a5\u5d4c\u5165\u5230 html \u7ed3\u6784\u4e2d\u3002\u5b83\u7b80\u5355\u4f46\u529f\u80fd\u5f3a\u5927\uff0c\u5e76\u4e14\u4e0e\u52a8\u6001\u7f51\u9875\u7684 express.js \u96c6\u6210\u826f\u597d\u3002<\/p>\n<p><strong>\u4f8b\u5982\uff09<\/strong> &lt;%= %&gt; \u8bed\u6cd5\u7528\u4e8e\u5c06 javascript \u8868\u8fbe\u5f0f\u6ce8\u5165 html\u3002<\/p>\n<pre>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n  &lt;title&gt;&lt;%= title %&gt;&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n  &lt;h1&gt;&lt;%= message %&gt;&lt;\/h1&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300a\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n<p>      \u7248\u672c\u58f0\u660e \u672c\u6587\u8f6c\u8f7d\u4e8e\uff1adev.to \u5982\u6709\u4fb5\u72af\uff0c\u8bf7\u8054\u7cfb\u5220\u9664    <\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   \u5bf9\u6297 GCP \u548c Firebase Cloud \u5ba2\u6237\u7aef CLI \u548c SDK \u81a8\u80c0\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9 \u6536\u85cf \u4e00\u5206\u8015\u8018\uff0c\u4e00\u5206\u6536\u83b7\uff01\u65e2\u7136\u6253\u5f00\u4e86\u8fd9\u7bc7\u6587\u7ae0\u300a\u4f7f\u7528 Nodejs \u548c Expressjs \u6784\u5efa\u7f51\u7ad9\u300b\uff0c\u5c31\u575a\u6301\u770b\u4e0b\u53bb\u5427\uff01\u6587\u4e2d\u5185\u5bb9\u5305\u542b\u7b49\u7b49\u77e5\u8bc6\u70b9&#8230;\u5e0c\u671b\u4f60\u80fd\u5728\u9605\u8bfb\u672c\u6587\u540e\uff0c\u80fd\u771f\u771f\u5b9e\u5b9e\u5b66\u5230\u77e5\u8bc6\u6216\u8005\u5e2e\u4f60\u89e3\u51b3\u5fc3\u4e2d\u7684\u7591\u60d1\uff0c\u4e5f\u6b22\u8fce\u5927\u4f6c\u6216\u8005\u65b0\u4eba\u670b\u53cb\u4eec\u591a\u7559\u8a00\u8bc4\u8bba\uff0c\u591a\u7ed9\u5efa\u8bae\uff01\u8c22\u8c22\uff01 \u672c\u6587\u6df1\u5165\u4ecb\u7ecd\u4e86\u4f7f\u7528 node.js \u548c express.js \u6784\u5efa\u7f51\u7ad9\u3002 express.js \u662f\u5728 node.js \u4e4b\u4e0a\u521b\u5efa\u5065\u58ee\u4e14\u53ef\u6269\u5c55\u7684 web \u5e94\u7528\u7a0b\u5e8f\u7684\u91cd\u8981\u6846\u67b6\uff0c\u4eca\u5929\u7684\u91cd\u70b9\u5c06\u662f\u8def\u7531\u3001\u4e2d\u95f4\u4ef6\u3001\u6a21\u677f\u5f15\u64ce \u548c cookie \u4f1a\u8bdd\u3002 \u6982\u5ff5\u4eae\u70b9\uff1a app.use(\u56de\u8c03) app.use(\u8def\u5f84\uff0c\u56de\u8c03) \u83b7\u53d6\u3001\u53d1\u5e03\u3001\u653e\u7f6e\u3001\u5220\u9664 express \u4e2d\u95f4\u4ef6 \u8c03\u7528\u5806\u6808\u4e2d\u7684\u4e0b\u4e00\u4e2a\u4e2d\u95f4\u4ef6 \u4f7f\u7528 express \u8def\u7531\u5668 cookie \u4f1a\u8bdd\u7ba1\u7406\u4e2d\u95f4\u4ef6 \u6a21\u677f\u53d8\u91cf ejs 1. app.use(\u56de\u8c03) express.js\u4e2d\u7684app.use(callback)\u65b9\u6cd5\u7528\u4e8e\u6302\u8f7d\u4e2d\u95f4\u4ef6\u51fd\u6570\u3002\u8be5\u4e2d\u95f4\u4ef6\u5c06\u9488\u5bf9\u5411\u5e94\u7528\u7a0b\u5e8f\u53d1\u51fa\u7684\u6bcf\u4e2a\u8bf7\u6c42\u8fd0\u884c\uff0c\u65e0\u8bba http \u65b9\u6cd5\u6216 url \u662f\u4ec0\u4e48\u3002 \u4f8b\u5982\uff09 \u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u4e2d\u95f4\u4ef6\u9488\u5bf9\u6bcf\u4e2a\u4f20\u5165\u8bf7\u6c42\u8fd0\u884c\u5e76\u5411\u63a7\u5236\u53f0\u8bb0\u5f55\u4e00\u6761\u6d88\u606f\u3002 const express = require(&#8216;express&#8217;); const app = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-53396","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=53396"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53396\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}