{"id":895,"date":"2026-05-20T09:52:56","date_gmt":"2026-05-20T01:52:56","guid":{"rendered":"https:\/\/junai.ai\/blog\/nodejs-express-routing-middleware-14\/"},"modified":"2026-05-20T09:52:56","modified_gmt":"2026-05-20T01:52:56","slug":"nodejs-express-routing-middleware-14","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/nodejs-express-routing-middleware-14\/","title":{"rendered":"Express \ub77c\uc6b0\ud305\u00b7\ubbf8\ub4e4\uc6e8\uc5b4 \u2014 Router\uc640 \uccb4\uc778"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 840 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n:root {--color-primary:#059669;--color-accent:#10b981;--color-bg:#fafbfc;--color-bg-card:#fff;--color-text:#1a202c;--color-text-muted:#64748b;--hero-start:#064e3b;--hero-end:#059669;}\n*{box-sizing:border-box;}\n.container{max-width:760px;margin:0 auto;padding:0 24px 80px;}\n.hero{background:linear-gradient(135deg,var(--hero-start) 0%,var(--hero-end) 100%);color:#fff;padding:80px 24px 60px;text-align:center;}\n.hero .eyebrow{display:inline-block;font-size:14px;color:#6ee7b7;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;margin-bottom:14px;}\n.hero h1{font-size:36px;margin:0 0 16px;line-height:1.3;font-weight:800;}\n.hero p{color:#d1fae5;font-size:18px;max-width:640px;margin:0 auto;line-height:1.6;}\n.hero img{width:100%;max-width:640px;height:auto;margin:32px auto 0;border-radius:10px;display:block;}\narticle{padding-top:48px;}\narticle h2{font-size:26px;margin:56px 0 20px;padding-left:14px;border-left:5px solid var(--color-accent);line-height:1.4;}\narticle h3{font-size:19px;margin:32px 0 12px;color:var(--color-primary);}\narticle p{margin:16px 0;}\narticle strong{color:var(--color-primary);font-weight:700;}\narticle code{background:#d1fae5;padding:2px 8px;border-radius:4px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;color:#065f46;}\n.databox{background:#d1fae5;border-left:4px solid var(--color-accent);padding:16px 20px;margin:24px 0;border-radius:0 8px 8px 0;font-size:15.5px;}\n.databox strong{color:var(--color-primary);}\n.warnbox{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);padding:16px 20px;margin:24px 0;border-radius:8px;font-size:15.5px;}\n.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:22px 0;}\ntable{width:100%;border-collapse:collapse;font-size:15px;background:var(--color-bg-card);}\nth,td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top;}\nth{background:#f1f5f9;font-weight:700;color:#0f172a;}\ntd:first-child,th:first-child{font-weight:700;}\n@media (max-width:560px){.tablewrap table,.tablewrap thead,.tablewrap tbody,.tablewrap tr,.tablewrap th,.tablewrap td{display:block;width:auto;}.tablewrap thead{display:none;}.tablewrap tr{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;}.tablewrap td{border:none;border-bottom:1px solid #f1f5f9;padding:9px 14px;}.tablewrap td:first-child{background:#f1f5f9;font-weight:800;font-size:15.5px;}.tablewrap td:last-child{border-bottom:none;}.tablewrap td[data-label]::before{content:attr(data-label) \" \u2014 \";font-weight:700;color:var(--color-primary);}}\n.code-block{background:#0f172a;color:#e2e8f0;padding:16px 20px;border-radius:8px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;line-height:1.6;margin:20px 0;overflow-x:auto;white-space:pre;}\n.cta{background:linear-gradient(135deg,#059669 0%,#10b981 100%);color:#fff;padding:28px 24px;border-radius:12px;margin:48px 0 0;text-align:center;}\n.cta h3{color:#fff;margin:0 0 8px;font-size:20px;}\n.cta p{color:#d1fae5;margin:0;font-size:15.5px;}\n.footer-nav{margin-top:32px;padding-top:20px;border-top:1px solid #e2e8f0;font-size:14px;color:var(--color-text-muted);}\n.footer-nav a{color:var(--color-primary);text-decoration:none;}\n@media (max-width:480px){.hero h1{font-size:26px;}.hero p{font-size:16px;}article h2{font-size:21px;}article h3{font-size:17px;}body{font-size:16px;}}\n<\/style>\n<section class=\"hero\">\n  <span class=\"eyebrow\">Node.js \uad50\uc7ac \u00b7 14\ud3b8 \u00b7 Express \uc2ec\ud654<\/span>\n  <h1>Express \ub77c\uc6b0\ud305\u00b7\ubbf8\ub4e4\uc6e8\uc5b4 \u2014 Router\uc640 \uccb4\uc778<\/h1>\n  <p>13\ud3b8\uc774 \ub2e8\uc21c \uc785\ubb38\uc774\uba74 \uc774\ubc88\uc774 \uc9c4\uc9dc \uc2dc\uc791. Express \uc758 \uc815\uccb4\ub294 \ubbf8\ub4e4\uc6e8\uc5b4 \uccb4\uc778.<\/p>\n  <img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-5-73.jpg\" alt=\"Express \ubbf8\ub4e4\uc6e8\uc5b4 \uccb4\uc778\uacfc \ub77c\uc6b0\ud130 \ubd84\ub9ac \ucee8\uc149 \uc77c\ub7ec\uc2a4\ud2b8\">\n<\/section>\n\n<div class=\"container\">\n<article>\n\n<p>13\ud3b8\uc758 \ucf54\ub4dc\ub97c \uadf8\ub300\ub85c \ud0a4\uc6cc\ub098\uac00\uba74 \uace7 \ud55c \ud30c\uc77c 500\uc904. \ub77c\uc6b0\ud2b8 10\uac1c, \uc778\uc99d \uac80\uc0ac, \ub85c\uae45, \uc5d0\ub7ec \ucc98\ub9ac \u2014 \ub2e4 \ud55c \ud30c\uc77c\uc5d0 \ubc15\ud78c\ub2e4. \uc720\uc9c0\ubcf4\uc218 \ubd88\uac00\ub2a5.<\/p>\n\n<p>Express \uc758 \ud574\ub2f5\uc740 \ub450 \uac00\uc9c0 \u2014 <strong>Router<\/strong>(\ub77c\uc6b0\ud2b8 \ubaa8\ub4c8\ud654)\uc640 <strong>\ubbf8\ub4e4\uc6e8\uc5b4 \uccb4\uc778<\/strong>(\uacf5\ud1b5 \ub85c\uc9c1 \ubd84\ub9ac). \ub458\uc774 \uc5b4\uc6b0\ub7ec\uc838 \uc2e4\uc804 \ubc31\uc5d4\ub4dc\uc758 \uace8\uaca9\uc774 \ub41c\ub2e4. \uc774\ubc88 \ud3b8\uc774 \ud575\uc2ec.<\/p>\n\n<h2>1. \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uc815\uccb4 \u2014 (req, res, next) \ud568\uc218<\/h2>\n\n<p>Express \uc758 \ubaa8\ub4e0 \uac83\uc740 \uacb0\uad6d <code>(req, res, next) =&gt; { ... }<\/code> \ud568\uc218. \ub77c\uc6b0\ud2b8 \ud578\ub4e4\ub7ec\ub3c4 \ubbf8\ub4e4\uc6e8\uc5b4, <code>express.json()<\/code> \ub3c4 \ubbf8\ub4e4\uc6e8\uc5b4. \ub458\uc758 \uc720\uc77c\ud55c \ucc28\uc774\ub294 <strong>next() \ub97c \ubd80\ub974\ub294\uac00<\/strong>.<\/p>\n\n<div class=\"code-block\">\/\/ \ubbf8\ub4e4\uc6e8\uc5b4 1\ubc88 \u2014 \ub85c\uac70\nfunction logger(req, res, next) {\n  console.log(`${new Date().toISOString()} ${req.method} ${req.url}`);\n  next();   \/\/ \u2190 \ub2e4\uc74c \ubbf8\ub4e4\uc6e8\uc5b4\ub85c \ub118\uae40\n}\n\n\/\/ \ubbf8\ub4e4\uc6e8\uc5b4 2\ubc88 \u2014 \uc778\uc99d\nfunction requireAuth(req, res, next) {\n  const token = req.headers.authorization?.replace(&#8216;Bearer &#8216;, &#8221;);\n  if (!token) return res.status(401).json({ error: &#8216;\ud1a0\ud070 \uc5c6\uc74c&#8217; });\n  req.user = { id: verifyToken(token) };\n  next();\n}\n\n\/\/ \ub77c\uc6b0\ud2b8 \ud578\ub4e4\ub7ec (next \uc548 \ubd80\ub974\uace0 \uc751\ub2f5\uc73c\ub85c \ub05d)\nfunction getMe(req, res) {\n  res.json({ user: req.user });\n}\n\napp.use(logger);                    \/\/ \uc804\uc5ed \uc801\uc6a9\napp.get(&#8216;\/api\/me&#8217;, requireAuth, getMe);   \/\/ \uc774 \ub77c\uc6b0\ud2b8\ub9cc \uc778\uc99d<\/div>\n\n<p>\ud575\uc2ec \u2014 <strong><code>next()<\/code> \ub97c \ubd80\ub974\uba74 \ub2e4\uc74c \ud568\uc218\ub85c, \uc548 \ubd80\ub974\uace0 <code>res.send\/json<\/code> \ud558\uba74 \uc751\ub2f5\uc73c\ub85c \uc885\ub8cc<\/strong>. \uc78a\uace0 \ub458 \ub2e4 \uc548 \ud558\uba74 \uc694\uccad\uc774 \uc601\uc6d0\ud788 hang. \ud754\ud55c \uc0ac\uace0.<\/p>\n\n<div class=\"databox\">\n<strong>\ubbf8\ub4e4\uc6e8\uc5b4 \uccb4\uc778 = \uc591\ud30c<\/strong> \u2014 <code>app.use(A); app.use(B); app.get('\/x', C)<\/code> \uba74 <code>\/x<\/code> \uc694\uccad\uc740 A \u2192 B \u2192 C \uc21c\uc11c\ub85c \ud1b5\uacfc. C \uac00 \uc751\ub2f5\ud558\uba74 \ub05d. \uc5b4\ub5a4 \ubbf8\ub4e4\uc6e8\uc5b4\uac00 \uc751\ub2f5\ud558\uba74 \uadf8 \ub4a4\ub294 \uc2e4\ud589 \uc548 \ub428. \uc774 \ubaa8\ub378\uc774 Koa\u00b7Hono \ub4f1 \ud6c4\uc18d \ud504\ub808\uc784\uc6cc\ud06c\uc5d0\ub3c4 \uadf8\ub300\ub85c \ucc28\uc6a9.\n<\/div>\n\n<h2>2. \ubbf8\ub4e4\uc6e8\uc5b4 3\uac00\uc9c0 \uc704\uce58<\/h2>\n\n<div class=\"tablewrap\">\n<table>\n<thead><tr><th>\uc801\uc6a9 \ubc29\ubc95<\/th><th>\ubc94\uc704<\/th><th>\uc608<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><code>app.use(mw)<\/code><\/td><td data-label=\"\ubc94\uc704\">\ubaa8\ub4e0 \uc694\uccad<\/td><td data-label=\"\uc608\">logger\u00b7cors\u00b7express.json<\/td><\/tr>\n<tr><td><code>app.use(\uacbd\ub85c, mw)<\/code><\/td><td data-label=\"\ubc94\uc704\">\uacbd\ub85c prefix \ub9e4\uce6d\ub9cc<\/td><td data-label=\"\uc608\"><code>app.use('\/admin', requireAuth)<\/code><\/td><\/tr>\n<tr><td><code>app.get(\uacbd\ub85c, mw1, mw2, handler)<\/code><\/td><td data-label=\"\ubc94\uc704\">\uadf8 \ub77c\uc6b0\ud2b8 \ud55c\uc815<\/td><td data-label=\"\uc608\"><code>app.post('\/posts', requireAuth, validate, createPost)<\/code><\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<p>\uac19\uc740 \uc778\uc99d \ubbf8\ub4e4\uc6e8\uc5b4\ub97c <code>\/admin\/*<\/code> \uc804\uccb4\uc5d0 \uac78\uace0, \ud2b9\uc815 \ub77c\uc6b0\ud2b8\uc5d4 \ucd94\uac00 \uac80\uc99d\uc744 \ub07c\uc6b0\ub294 \uc2dd\uc758 \uc870\ud569\uc774 \uc2e4\uc804 \ubc31\uc5d4\ub4dc\uc758 \uae30\ubcf8 \ud328\ud134.<\/p>\n\n<h2>3. Router \u2014 \ub77c\uc6b0\ud2b8 \ubaa8\ub4c8\ud654<\/h2>\n\n<p>\ud55c \ud30c\uc77c\uc5d0 \ub77c\uc6b0\ud2b8 100\uac1c \ubc15\uc9c0 \ub9d0\uace0, <strong>\ub9ac\uc18c\uc2a4\ubcc4 \ud30c\uc77c \ubd84\ub9ac<\/strong>.<\/p>\n\n<div class=\"code-block\">\/\/ routes\/posts.js\nimport { Router } from &#8216;express&#8217;;\nconst router = Router();\n\nrouter.get(&#8216;\/&#8217;, listPosts);\nrouter.get(&#8216;\/:id&#8217;, getPost);\nrouter.post(&#8216;\/&#8217;, requireAuth, createPost);\nrouter.delete(&#8216;\/:id&#8217;, requireAuth, requireOwner, deletePost);\n\nexport default router;<\/div>\n\n<div class=\"code-block\">\/\/ server.js\nimport express from &#8216;express&#8217;;\nimport postsRouter from &#8216;.\/routes\/posts.js&#8217;;\nimport usersRouter from &#8216;.\/routes\/users.js&#8217;;\n\nconst app = express();\napp.use(express.json());\n\napp.use(&#8216;\/api\/posts&#8217;, postsRouter);\napp.use(&#8216;\/api\/users&#8217;, usersRouter);\n\napp.listen(3000);<\/div>\n\n<p>\uc774\ub807\uac8c \ubd84\ub9ac\ud558\uba74 <code>routes\/posts.js<\/code> \uc548\uc758 <code>router.get('\/')<\/code> \uac00 \uc2e4\uc81c URL <code>\/api\/posts<\/code> \uac00 \ub41c\ub2e4. \ub77c\uc6b0\ud130 \uc790\uccb4\ub3c4 \ubbf8\ub4e4\uc6e8\uc5b4 \u2014 Express \uc758 \uc77c\uad00\ub41c \ub514\uc790\uc778 \ub355\ubd84.<\/p>\n\n<h2>4. \uc790\uc8fc \ub9cc\ub4dc\ub294 \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 4\uac00\uc9c0<\/h2>\n\n<h3>\u2460 \uc694\uccad \ub85c\uac70<\/h3>\n\n<div class=\"code-block\">function logger(req, res, next) {\n  const start = Date.now();\n  res.on(&#8216;finish&#8217;, () =&gt; {\n    const ms = Date.now() &#8211; start;\n    console.log(`${req.method} ${req.url} ${res.statusCode} ${ms}ms`);\n  });\n  next();\n}\napp.use(logger);<\/div>\n\n<h3>\u2461 CORS \u2014 \ud06c\ub85c\uc2a4 \ub3c4\uba54\uc778 \ud5c8\uc6a9<\/h3>\n\n<div class=\"code-block\">\/\/ \uc9c1\uc811 (\ud2b9\uc815 origin \ub9cc \ud5c8\uc6a9)\napp.use((req, res, next) =&gt; {\n  const allowedOrigins = [&#8216;https:\/\/junai.ai&#8217;, &#8216;http:\/\/localhost:3000&#8217;];\n  const origin = req.headers.origin;\n  if (allowedOrigins.includes(origin)) {\n    res.setHeader(&#8216;Access-Control-Allow-Origin&#8217;, origin);\n    res.setHeader(&#8216;Access-Control-Allow-Credentials&#8217;, &#8216;true&#8217;);\n  }\n  if (req.method === &#8216;OPTIONS&#8217;) return res.status(204).end();\n  next();\n});\n\n\/\/ \ub610\ub294 cors npm \ud328\ud0a4\uc9c0\ub85c \ud55c \uc904\n\/\/ app.use(cors({ origin: allowedOrigins }));<\/div>\n\n<h3>\u2462 JWT \uc778\uc99d<\/h3>\n\n<div class=\"code-block\">import jwt from &#8216;jsonwebtoken&#8217;;\n\nfunction requireAuth(req, res, next) {\n  const auth = req.headers.authorization;\n  if (!auth?.startsWith(&#8216;Bearer &#8216;)) {\n    return res.status(401).json({ error: &#8216;\ud1a0\ud070 \uc5c6\uc74c&#8217; });\n  }\n  try {\n    req.user = jwt.verify(auth.slice(7), process.env.JWT_SECRET);\n    next();\n  } catch {\n    res.status(401).json({ error: &#8216;\uc798\ubabb\ub41c \ud1a0\ud070&#8217; });\n  }\n}<\/div>\n\n<h3>\u2463 \uc5d0\ub7ec \ud578\ub4e4\ub7ec \u2014 \uc778\uc790 4\uac1c<\/h3>\n\n<div class=\"code-block\">\/\/ \uac00\uc7a5 \ub9c8\uc9c0\ub9c9\uc5d0 \ub4f1\ub85d. \uc778\uc790\uac00 4\uac1c\ub77c\ub294 \uac8c \uc2e0\ud638.\napp.use((err, req, res, next) =&gt; {\n  console.error(&#8216;[error]&#8217;, err);\n  res.status(err.status || 500).json({\n    error: err.message || &#8216;\uc11c\ubc84 \uc624\ub958&#8217;,\n  });\n});\n\n\/\/ \ud578\ub4e4\ub7ec\uc5d0\uc11c throw \ud558\uba74 \uc790\ub3d9\uc73c\ub85c \uc774\ub9ac \uc634 (async \uba74 next(err) \ud638\ucd9c \ud544\uc694)\napp.get(&#8216;\/api\/danger&#8217;, async (req, res, next) =&gt; {\n  try {\n    const data = await fetchSomething();\n    res.json(data);\n  } catch (err) {\n    next(err);\n  }\n});<\/div>\n\n<div class=\"warnbox\">\n<strong>async \ubbf8\ub4e4\uc6e8\uc5b4 \ud568\uc815<\/strong> \u2014 Express 4 \uae4c\uc9c0\ub294 async \ud578\ub4e4\ub7ec\uc758 throw \ub97c \uc790\ub3d9\uc73c\ub85c \ubabb \uc7a1\uc558\ub2e4. <code>next(err)<\/code> \uc9c1\uc811 \ud638\ucd9c \ud544\uc694. Express 5 (2024 stable) \ubd80\ud130 async throw \uc790\ub3d9 \uce90\uce58. \uc5b4\ub290 \ubc84\uc804\uc778\uc9c0 \ud655\uc778. 5 \uac00 \uc544\ub2c8\uba74 <code>express-async-errors<\/code> \ud328\ud0a4\uc9c0 \ucd94\uac00.\n<\/div>\n\n<h2>5. \ubbf8\ub4e4\uc6e8\uc5b4 \uc21c\uc11c \u2014 \uc790\uc8fc \uae5c\ube61\ud558\ub294 \ud568\uc815<\/h2>\n\n<p>\ub4f1\ub85d \uc21c\uc11c = \uc2e4\ud589 \uc21c\uc11c. \uc798\ubabb \ub450\uba74 \uc548 \ub3c4\ub294 \uac8c \ud754\ud55c \uc0ac\uace0.<\/p>\n\n<div class=\"code-block\">\/\/ \u274c \uc798\ubabb\ub41c \uc21c\uc11c\napp.get(&#8216;\/api\/me&#8217;, getMe);\napp.use(express.json());           \/\/ \uc774\ubbf8 \ub77c\uc6b0\ud2b8 \ub4f1\ub85d \ub4a4\napp.use(requireAuth);              \/\/ \/api\/me \uc5d4 \uc801\uc6a9 \uc548 \ub428\n\n\/\/ \u2705 \uc815\ub2f5\napp.use(express.json());           \/\/ 1. \ubcf8\ubb38 \ud30c\uc2f1 \uba3c\uc800\napp.use(logger);                   \/\/ 2. \ubaa8\ub4e0 \uc694\uccad \ub85c\uae45\napp.use(&#8216;\/api&#8217;, requireAuth);      \/\/ 3. \/api\/* \uc778\uc99d\napp.get(&#8216;\/api\/me&#8217;, getMe);         \/\/ 4. \ub77c\uc6b0\ud2b8\napp.use((err, req, res, next) =&gt; \u2026); \/\/ 5. \uc5d0\ub7ec \ud578\ub4e4\ub7ec (\uc81c\uc77c \ub05d)<\/div>\n\n<p>\ud45c\uc900 \uc21c\uc11c \u2014 <strong>\ubcf8\ubb38 \ud30c\uc2f1 \u2192 \ub85c\uae45 \u2192 CORS \u2192 \uc778\uc99d \u2192 \ub77c\uc6b0\ud2b8 \u2192 \uc5d0\ub7ec \ud578\ub4e4\ub7ec<\/strong>. \uc678\uc6cc\ub458 \uac00\uce58 \uc788\ub2e4.<\/p>\n\n<h3>\uc694\uc57d \u2014 14\ud3b8 \uc88c\ud45c<\/h3>\n\n<p>\uc5ec\uae30\uae4c\uc9c0 \uc815\ub9ac. Express \uc758 \ubaa8\ub4e0 \uac83\uc740 <code>(req, res, next)<\/code> \ud568\uc218 \u2014 \ubbf8\ub4e4\uc6e8\uc5b4. <code>next()<\/code> \ubd80\ub974\uba74 \ub2e4\uc74c, \uc751\ub2f5\ud558\uba74 \ub05d. <code>app.use<\/code>(\uc804\uc5ed) \u00b7 \uacbd\ub85c prefix \u00b7 \ub77c\uc6b0\ud2b8 \uc778\ub77c\uc778 3\uac00\uc9c0 \uc704\uce58. <strong>Router<\/strong> \ub85c \ub9ac\uc18c\uc2a4\ubcc4 \ub77c\uc6b0\ud2b8 \ubd84\ub9ac. \uc790\uc8fc \ub9cc\ub4dc\ub294 \ucee4\uc2a4\ud140 4\uc885 \u2014 \ub85c\uac70\u00b7CORS\u00b7JWT \uc778\uc99d\u00b7\uc5d0\ub7ec \ud578\ub4e4\ub7ec(\uc778\uc790 4\uac1c). \ub4f1\ub85d \uc21c\uc11c\uac00 \uace7 \uc2e4\ud589 \uc21c\uc11c. \ub2e4\uc74c \ud3b8\uc5d0\uc11c <strong>JSON API<\/strong> \uc758 REST \uc124\uacc4\ub97c \ubb36\ub294\ub2e4.<\/p>\n\n<div class=\"cta\">\n<h3>\ub2e4\uc74c \ud3b8 \uc608\uace0 \u2014 JSON API \uc640 REST<\/h3>\n<p>RESTful CRUD \uc124\uacc4\uc640 \uc751\ub2f5 \uaddc\uc57d. 15\ud3b8.<\/p>\n<\/div>\n\n<div class=\"footer-nav\">\n\uc2dc\ub9ac\uc988 \u00b7 <a href=\"https:\/\/junai.ai\/blog\/category\/nodejs\/\">\uc27d\uac8c \ubc30\uc6b0\ub294 Node.js<\/a> \u00b7 \uc774\uc804: <a href=\"https:\/\/junai.ai\/blog\/nodejs-express-intro-13\/\">Ch.13 Express \uc785\ubb38<\/a>\n<\/div>\n\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Express Router \ubd84\ub9ac\ub85c \ub77c\uc6b0\ud305 \ubaa8\ub4c8\ud654, \ubbf8\ub4e4\uc6e8\uc5b4 \uccb4\uc778\uc73c\ub85c \uc778\uc99d\u00b7\ub85c\uae45\u00b7CORS\u00b7\uc5d0\ub7ec \ucc98\ub9ac. \uc2e4\uc804 \ubc31\uc5d4\ub4dc\uc758 \ud575\uc2ec \ud328\ud134. \uad50\uc7ac 14\ud3b8.<\/p>\n","protected":false},"author":1,"featured_media":840,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-895","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nodejs"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=895"}],"version-history":[{"count":0,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/895\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/840"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}