{"height":"190","width":"100%","blog_url":"https://memory-lovers.blog/","title":"Nuxt\u3067serverMiddleware\u3092\u4f7f\u3063\u3066API\u3092\u3064\u304f\u3063\u3066\u307f\u308b","version":"1.0","description":"Nuxt.js\u3001SSR\u3067\u5b9f\u884c\u3059\u308b\u3068\u5916\u90e8\u30b5\u30fc\u30d0\u306a\u3057\u3067API\u3092\u7c21\u5358\u306b\u8ffd\u52a0\u3067\u304d\u308b\u3089\u3057\u3044\u3002 serverMiddleware\u3092\u4f7f\u3063\u3066\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3068API\u304c\u4f5c\u308c\u305f\u306e\u3067\u3001\u305d\u306e\u6642\u306e\u5099\u5fd8\u9332\u3002 \u3064\u304b\u3063\u3066\u307f\u308b API\u3092\u3064\u304f\u308b // ~/server/echo.ts import { IncomingMessage, ServerResponse } from \"http\"; /** * \u300c?name=AAA\u300d\u3067\u547c\u3073\u51fa\u3059\u3068\u3001AAA\u3092\u8fd4\u3059echo\u306aAPI */ export default async function(req: IncomingMessage, res: ServerResponse) { tr\u2026","categories":["Nuxt.js","Vue.js","API"],"url":"https://memory-lovers.blog/entry/2019/12/29/120000","published":"2019-12-29 12:00:00","image_url":null,"provider_name":"Hatena Blog","author_name":"wannabe-jellyfish","author_url":"https://blog.hatena.ne.jp/wannabe-jellyfish/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2019%2F12%2F29%2F120000\" title=\"Nuxt\u3067serverMiddleware\u3092\u4f7f\u3063\u3066API\u3092\u3064\u304f\u3063\u3066\u307f\u308b - \u304f\u3089\u3052\u306b\u306a\u308a\u305f\u3044\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u304f\u3089\u3052\u306b\u306a\u308a\u305f\u3044\u3002","provider_url":"https://hatena.blog","type":"rich"}