{"id":1621,"date":"2022-07-31T14:36:19","date_gmt":"2022-07-31T05:36:19","guid":{"rendered":"https:\/\/teno-hira.com\/media\/?p=1621"},"modified":"2023-06-09T22:23:59","modified_gmt":"2023-06-09T13:23:59","slug":"express%e3%81%ae%e9%9d%99%e7%9a%84%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e6%8f%90%e4%be%9b%ef%bc%88express-static%ef%bc%89%e3%81%8c%e9%80%9a%e3%82%89%e3%81%aa%e3%81%8f%e3%81%a6%e3%80%81%e3%81%a4","status":"publish","type":"post","link":"https:\/\/teno-hira.com\/media\/?p=1621","title":{"rendered":"Express\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u63d0\u4f9b\uff08express.static\uff09\u304c\u901a\u3089\u306a\u304f\u3066\u3001\u3064\u307e\u3065\u3044\u305f\u8a71"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u5148\u65e5\u3001Node.js\u306eExpress\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u63d0\u4f9b\u6a5f\u80fd\u3067\u3042\u308bexpress.static\u306e\u6271\u3044\u304c\u4e0a\u624b\u304f\u3044\u304b\u305a\u306b\u3064\u307e\u3065\u3044\u305f\u306e\u3067\u3001\u76f4\u9762\u3057\u305f\u554f\u984c\u3068\u89e3\u6c7a\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>\u306a\u304a\u672c\u8a18\u4e8b\u306e\u7d50\u8ad6\u3001\u3068\u3044\u3046\u304b\u8a71\u306e\u8ef8\u306f<strong>\u300cexpress\u306e\u4ed5\u69d8\u3092\u3061\u3083\u3093\u3068\u628a\u63e1\u3057\u3088\u3046\u306d\u300d<\/strong>\u306a\u306e\u3067\u3001\u50d5\u3068\u3042\u306a\u305f\u306e\u958b\u767a\u74b0\u5883\u3084\u524d\u63d0\u306b\u76f8\u9055\u70b9\u304c\u3042\u3063\u3066\u3082\u3001\u4e00\u5ea6\u5168\u6587\u8aad\u3093\u3067\u307f\u3066\u307b\u3057\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3084\u3084\u304f\u3069\u3044\u8a18\u4e8b\u306b\u306a\u308b\u306e\u3067\u3001\u7d50\u8ad6\u3092\u6700\u521d\u306b\u8ff0\u3079\u308b\u3002<\/strong><\/p>\n<blockquote><p>express.static\u95a2\u6570\u306b\u6307\u5b9a\u3059\u308b\u30d1\u30b9\u306f\u3001node\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u76f8\u5bfe\u7684\u3067\u3059\u3002\u5225\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u63d0\u4f9b\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e\u7d76\u5bfe\u30d1\u30b9\u3092\u4f7f\u7528\u3059\u308b\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<div class=\"blockquote_ref\">\n<div><a href=\"https:\/\/expressjs.com\/ja\/starter\/static-files.html\" target=\"_blank\" rel=\"noopener\">Express\u3067\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306e\u63d0\u4f9b<\/a><\/div>\n<\/div>\n<\/blockquote>\n<h2>\u74b0\u5883\u30fb\u524d\u63d0<\/h2>\n<ul>\n<li>Windows11<\/li>\n<li>WSL2<\/li>\n<li>Ubuntu 20.04.4 LTS<\/li>\n<li>React<\/li>\n<li>Node.js <span>16.14.2<\/span><\/li>\n<li>npm 8.5.0<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u30d5\u30ed\u30f3\u30c8\u3092React\u3001\u30d0\u30c3\u30af\u3092Node.js\uff08Express\uff09\u3068\u3044\u3046\u69cb\u6210\u3067Web\u30a2\u30d7\u30ea\u958b\u767a\u3092\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-other\">Project\r\n\u221fclient  \/\/\u30d5\u30ed\u30f3\u30c8\r\n\u221fserver  \/\/\u30d0\u30c3\u30af\r\n  \u221findex.js\r\n  \u221fpublic\r\n    \u221fimages\r\n      \u221fdefaultCover.jpg\r\n      \u221fdefaultProfile.png<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u3088\u3063\u3066\u3001<code>server\/index.js<\/code>\u306b<code>express.static<\/code>\u3092\u8a18\u8ff0\u3057\u3066\u3001<code>public\/images<\/code>\u306b\u4fdd\u5b58\u3055\u308c\u3066\u308b\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u51fa\u305d\u3046\u3068\u3057\u305f\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-js\">import express from \"express\";\r\nconst app = express();\r\n\r\napp.use(express.static('\/public'));\r\n\r\n\uff08\u4ee5\u4e0b\u7565\uff09<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u9759\u7684\u30a2\u30bb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3057\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u540d\u524d<code>public<\/code>\u3092\u3001express.static\u95a2\u6570\u306b\u6e21\u3059<\/strong>\u3053\u3068\u3067\u3001public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u4fdd\u5b58\u3057\u3066\u3044\u308b\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>Express\u30b5\u30fc\u30d0\u30fc\u3092localhost\u306e3001\u756a\u30dd\u30fc\u30c8\u3067\u8d77\u52d5\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u3001React\u5074\u304b\u3089<code>http:\/\/localhost:3001\/\u30d5\u30a1\u30a4\u30eb\u540d<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u51fa\u305b\u308b\u3002\uff08CORS\u306e\u554f\u984c\u306f\u89e3\u6c7a\u3057\u3066\u3044\u308b\u524d\u63d0\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u3057\u304b\u3057\u50d5\u306e\u5834\u5408\u3001<code>http:\/\/localhost:3001\/images\/\u30d5\u30a1\u30a4\u30eb\u540d<\/code>\u3068\u3044\u3046URL\u3067\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u51fa\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u6b21\u306e\u4e00\u6587\u3092\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-js\">app.use('\/images', express.static('\/images'));<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>express.static\u95a2\u6570\u3068\u4e00\u7dd2\u306b\u3001\u9759\u7684\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30de\u30a6\u30f3\u30c8\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001<code>http:\/\/localhost:3001\/images\/\u30d5\u30a1\u30a4\u30eb\u540d<\/code>\u3068\u3044\u3046URL\u3067\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u51fa\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u3061\u306a\u307f\u306b\u3053\u306e\u5834\u5408\u3001\u6700\u521d\u306b\u8a18\u8ff0\u3057\u305f'\/images'\u306f\u3042\u304f\u307e\u3067\u4eee\u60f3\u30d1\u30b9\u306e\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\uff08\u63a5\u982d\u8f9e\uff09\u306a\u306e\u3067\u3001\u5b9f\u969b\u306bimages\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u306f\u5fc5\u305a\u3057\u3082\u306a\u3044\u3002<\/p>\n<p>\u50d5\u306e\u5834\u5408\u306f\u3001\u6271\u3044\u305f\u3044\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u304c\u753b\u50cf\u4ee5\u5916\u306b\u3082\u8907\u6570\u3042\u308b\u306e\u3067\u3001public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306bimages\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7528\u610f\u3057\u3066\u3044\u308b\u3002<\/p>\n<h2>\u554f\u984c\u30fb\u30a8\u30e9\u30fc<\/h2>\n<p>React\u304b\u3089Node.js\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5074\u306b\u4fdd\u5b58\u3057\u3066\u3042\u308b\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u51fa\u3057\u3001React\u3067\u6271\u3044\uff08\u753b\u9762\u306b\u8868\u793a\uff09\u305f\u3044\u3002\u753b\u50cf\u3092\u53d6\u308a\u51fa\u3059\u305f\u3081\u306bExpress\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u63d0\u4f9b\u6a5f\u80fd<code>express.static<\/code>\u3092\u5229\u7528\u3057\u305f\u304c\u3001\u753b\u50cf\u306f\u8868\u793a\u3055\u308c\u305a\u30d6\u30e9\u30a6\u30b6\u306e\u958b\u767a\u8005\u30c4\u30fc\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3068<code>404 Not Found<\/code>\u304c\u8fd4\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teno-hira.com\/media\/wp-content\/uploads\/2022\/07\/image1-2.png\" alt=\"\" width=\"518\" height=\"261\" class=\"alignnone size-full wp-image-1627\" \/><\/p>\n<h2>\u89e3\u6c7a\u7b56<\/h2>\n<p>404 Not Found\u304c\u8fd4\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3001Request\u3057\u305fURL\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\uff08Node.js\u5074\u3067\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044URL\uff09\u308f\u3051\u3060\u304b\u3089\u3001\u307e\u305a\u306fURL\u306e\u8a18\u8ff0\u30df\u30b9\u3092\u7591\u3063\u305f\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-other\">http:\/\/localhost:3001\/images\/defaultCover.jpg<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u65e2\u8ff0\u306e\u901a\u308aNode.js\u5074\u3067\u306f\u3001httt:\/\/localhost;3001\/images\u3068\u3044\u3046URL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070public\/images\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u3060\u305b\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3002\u306e\u3067\u3001URL\u306e\u8a18\u8ff0\u30df\u30b9\u306f\u7121\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u306a\u308b\u3068server\/index.js\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u306b\u30df\u30b9\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u306e\u3067\u518d\u5ea6\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3002\u7d50\u8ad6\u3068\u3057\u3066\u3001express.static\u95a2\u6570\u306b\u6e21\u3059\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u306e\u66f8\u304d\u65b9\u306b\u30df\u30b9\u304c\u3042\u3063\u305f\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-js\">app.use(express.static('\/public')); \/\/\u2190\u3053\u3053\u306b\u30df\u30b9\r\napp.use('images', express.static('\/images'));<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/expressjs.com\/ja\/starter\/static-files.html\">Express\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u3088\u308b\u3068\u3001<strong>express.static\u95a2\u6570\u306b\u6307\u5b9a\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u306f\u3001node\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u76f8\u5bfe\u7684<\/strong>\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\u3089\u3057\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306fsever\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306b\u3042\u308b\u306e\u3067\u3001server\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067Node.js\u3092\u8d77\u52d5<code>node index.js<\/code>\u3057\u3066\u3044\u308c\u3070\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3059\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u50d5\u306e\u5834\u5408\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<code>Project<\/code>\u304b\u3089Node.js\u3092\u8d77\u52d5<code>node server\/index.js<\/code>\u3092\u3057\u3066\u3044\u305f\u305f\u3081\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3088\u3063\u3066\u89e3\u6c7a\u7b56\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3092\u65bd\u3059\u3068\u826f\u3044\u3002<\/p>\n<ol>\n<li><strong>\u76f8\u5bfe\u7684\u306b\u6b63\u3057\u3044\u30d1\u30b9\u3092\u8a18\u8ff0\u3059\u308b<\/strong><\/li>\n<li><strong>\u7d76\u5bfe\u30d1\u30b9\u3092\u53d6\u5f97\u3057\u3066\u8a18\u8ff0\u3059\u308b<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>1\uff0e\u76f8\u5bfe\u7684\u306b\u6b63\u3057\u3044\u30d1\u30b9\u3092\u8a18\u8ff0\u3059\u308b<\/strong><\/p>\n<pre class=\"line-numbers\"><code class=\"language-js\">app.use(express.static('server\/public'));\r\napp.use('\/images', express.static('\/images'));<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2\uff0e\u7d76\u5bfe\u30d1\u30b9\u3092\u53d6\u5f97\u3057\u3066\u8a18\u8ff0\u3059\u308b<\/strong><\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">const __filename = fileURLToPath(import.meta.url);\r\nconst __dirname = path.dirname(__filename);\r\n\r\napp.use(express.static(__dirname+'\/public'));\r\napp.use('\/images', express.static('\/images'));<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>CJS\u3092\u4f7f\u7528\u3057\u3066\u3044\u308c\u3070\u3001\u6700\u521d\u306e2\u884c\u3092\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002__dirname\uff08\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\uff09\u3092\u66f8\u304f\u3060\u3051\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7d76\u5bfe\u30d1\u30b9\u3092\u53d6\u5f97\u3067\u304d\u308b\u304b\u3089\u3067\u3042\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001ESM\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3092\u5229\u7528\u3067\u304d\u306a\u3044\u3002\u3088\u3063\u3066\u3001\u6700\u521d\u306e2\u884c\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067CJS\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3092\u6a21\u5023\u3057\u3066\u3001\u7591\u4f3c\u7684\u306b\u7d76\u5bfe\u30d1\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u3002<\/p>\n<div class=\"sc_frame_wrap onframe orange\">\n<div class=\"sc_frame_title\">CJS\u3068ESM<\/div>\n<div class=\"sc_frame \">\n<div class=\"sc_frame_text\">\n<p>Node.js\u306b\u306f\u300cCommonJS\u300d\u3068\u300cES Modules\u300d\u3068\u3044\u30462\u3064\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fCommonJS\u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3002\u305d\u306e\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u3092.js .cjs\u3068\u3057\u305f\u5834\u5408\u306fCommonJS\u304c\u3001.mjs\u3068\u3057\u305f\u5834\u5408\u306fES Module\u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001package.json\u306b\u3066\"type\":\"module\"\u3092\u8a18\u8ff0\u3059\u308c\u3070\u3001.js .mjs\u30d5\u30a1\u30a4\u30eb\u3092ES Modules\u3068\u3057\u3066\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<br \/>\n<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=3B96LD+1SWAHM+3XAE+609HT\" rel=\"nofollow\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"300\" height=\"250\" alt=\"\" data-src=\"https:\/\/www21.a8.net\/svt\/bgt?aid=200302753109&wid=002&eno=01&mid=s00000018311001009000&mc=1\" class=\"lazyload\" \/><\/a><br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" data-src=\"https:\/\/www17.a8.net\/0.gif?a8mat=3B96LD+1SWAHM+3XAE+609HT\" alt=\"\" class=\"lazyload\" \/><br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u5148\u65e5\u3001Node.js\u306eExpress\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u63d0\u4f9b\u6a5f\u80fd\u3067\u3042\u308bexpress.static\u306e\u6271\u3044\u304c\u4e0a\u624b\u304f\u3044\u304b\u305a\u306b\u3064\u307e\u3065\u3044\u305f\u306e\u3067\u3001\u76f4\u9762\u3057\u305f\u554f\u984c\u3068\u89e3\u6c7a\u65b9\u6cd5\u3092\u30e1\u30e2\u3002 \u306a\u304a\u672c\u8a18\u4e8b\u306e\u7d50\u8ad6\u3001\u3068\u3044\u3046\u304b\u8a71\u306e\u8ef8\u306f\u300cexpress\u306e\u4ed5\u69d8\u3092\u3061\u3083\u3093\u2026<\/p>\n","protected":false},"author":15,"featured_media":1625,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87],"tags":[],"class_list":["post-1621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cat-nodejs"],"_links":{"self":[{"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=\/wp\/v2\/posts\/1621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1621"}],"version-history":[{"count":6,"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=\/wp\/v2\/posts\/1621\/revisions"}],"predecessor-version":[{"id":1943,"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=\/wp\/v2\/posts\/1621\/revisions\/1943"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=\/wp\/v2\/media\/1625"}],"wp:attachment":[{"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teno-hira.com\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}