db-json-cli 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/.next/server/app/api/[resource]/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/[resource]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/info/route.js +2 -1
- package/.next/standalone/.next/server/app/api/info/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/info.body +1 -1
- package/.next/standalone/.next/server/app/api/login/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/register/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +2 -2
- package/.next/standalone/.next/server/chunks/759.js +1 -1
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/package.json +1 -1
- package/bin/cli.js +9 -5
- package/package.json +1 -1
- package/.next/standalone/db.json +0 -20
- /package/.next/standalone/.next/static/{ANGyQ0qQihM3hnAa-ot73 → 8X1owD5Rl_inFPGRZKLYo}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{ANGyQ0qQihM3hnAa-ot73 → 8X1owD5Rl_inFPGRZKLYo}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8X1owD5Rl_inFPGRZKLYo
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/_not-found/page":"/_not-found","/page":"/","/api/
|
|
1
|
+
{"/_not-found/page":"/_not-found","/page":"/","/api/login/route":"/api/login","/api/[resource]/route":"/api/[resource]","/api/[resource]/[id]/route":"/api/[resource]/[id]","/api/register/route":"/api/register","/api/info/route":"/api/info"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/8X1owD5Rl_inFPGRZKLYo/_buildManifest.js",
|
|
9
|
+
"static/8X1owD5Rl_inFPGRZKLYo/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [
|
|
12
12
|
"static/chunks/webpack-020ce2426d70958e.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":4,"routes":{"/
|
|
1
|
+
{"version":4,"routes":{"/":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/","dataRoute":"/index.rsc"},"/api/info":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/info/layout,_N_T_/api/info/route,_N_T_/api/info"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/info","dataRoute":null}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"bb378568d09f90b6b14f6d01b9816c41","previewModeSigningKey":"a9b888d532c2470a57f953f1c4986f8f829a64c85b611838d2b3a0f46054ba50","previewModeEncryptionKey":"8efc479145872b82332b013ab9dad4f6b13145829d9525be8d58f051f82590b8"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="ko"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/9e7c0563f88bbaa4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-020ce2426d70958e.js"/><script src="/_next/static/chunks/fd9d1056-13294f02aa6fd7af.js" async=""></script><script src="/_next/static/chunks/117-69b8841dc3821afe.js" async=""></script><script src="/_next/static/chunks/main-app-9982ced3bf7037dc.js" async=""></script><script src="/_next/static/chunks/954-b2c56f3f904cc664.js" async=""></script><script src="/_next/static/chunks/app/layout-fa3af872c59446d2.js" async=""></script><meta name="robots" content="noindex"/><title>db-json-cli</title><title>404: This page could not be found.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_746a73"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/9e7c0563f88bbaa4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[2846,[],\"\"]\n4:I[4707,[],\"\"]\n5:I[6423,[],\"\"]\n6:I[6984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"185\",\"static/chunks/app/layout-fa3af872c59446d2.js\"],\"default\",1]\nc:I[1060,[],\"\"]\n7:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n8:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n9:{\"display\":\"inline-block\"}\na:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="ko"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/9e7c0563f88bbaa4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-020ce2426d70958e.js"/><script src="/_next/static/chunks/fd9d1056-13294f02aa6fd7af.js" async=""></script><script src="/_next/static/chunks/117-69b8841dc3821afe.js" async=""></script><script src="/_next/static/chunks/main-app-9982ced3bf7037dc.js" async=""></script><script src="/_next/static/chunks/954-b2c56f3f904cc664.js" async=""></script><script src="/_next/static/chunks/app/layout-fa3af872c59446d2.js" async=""></script><meta name="robots" content="noindex"/><title>db-json-cli</title><title>404: This page could not be found.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_746a73"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/9e7c0563f88bbaa4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[2846,[],\"\"]\n4:I[4707,[],\"\"]\n5:I[6423,[],\"\"]\n6:I[6984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"185\",\"static/chunks/app/layout-fa3af872c59446d2.js\"],\"default\",1]\nc:I[1060,[],\"\"]\n7:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n8:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n9:{\"display\":\"inline-block\"}\na:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"8X1owD5Rl_inFPGRZKLYo\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/9e7c0563f88bbaa4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$8\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$9\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$a\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":{}}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
6:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"}
|
|
6
6
|
7:{"display":"inline-block"}
|
|
7
7
|
8:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0}
|
|
8
|
-
0:["
|
|
8
|
+
0:["8X1owD5Rl_inFPGRZKLYo",[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["/_not-found",{"children":["__PAGE__",{},[["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","/_not-found","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9e7c0563f88bbaa4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","$L4",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$5","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$6","children":"404"}],["$","div",null,{"style":"$7","children":["$","h2",null,{"style":"$8","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}],"params":{}}]],null],null],["$L9",["$","meta",null,{"name":"robots","content":"noindex"}]]]]]
|
|
9
9
|
9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]]
|
|
10
10
|
1:null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/276.js","../../../../chunks/610.js","../../../../chunks/759.js","../../../../chunks/944.js","../../../../webpack-runtime.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/276.js","../../../chunks/610.js","../../../chunks/759.js","../../../chunks/944.js","../../../webpack-runtime.js"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=874,e.ids=[874],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7790:e=>{e.exports=require("assert")},9714:e=>{e.exports=require("constants")},2048:e=>{e.exports=require("fs")},5315:e=>{e.exports=require("path")},6162:e=>{e.exports=require("stream")},1764:e=>{e.exports=require("util")},2935:(e,r,
|
|
1
|
+
"use strict";(()=>{var e={};e.id=874,e.ids=[874],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7790:e=>{e.exports=require("assert")},9714:e=>{e.exports=require("constants")},2048:e=>{e.exports=require("fs")},5315:e=>{e.exports=require("path")},6162:e=>{e.exports=require("stream")},1764:e=>{e.exports=require("util")},2935:(e,r,o)=>{o.r(r),o.d(r,{originalPathname:()=>P,patchFetch:()=>g,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>x,staticGenerationAsyncStorage:()=>f});var t={};o.r(t),o.d(t,{GET:()=>c});var s=o(9303),n=o(8716),i=o(670),a=o(7070),p=o(7431),u=o(53);let c=async()=>{try{console.log(`
|
|
2
|
+
🔍 [API /info] Request received`),console.log(`🔍 [API /info] process.env.DB_PATH = ${process.env.DB_PATH}`),console.log(`🔍 [API /info] process.cwd() = ${process.cwd()}`);let e=await (0,u.VK)();console.log(`🔍 [API /info] DB loaded. Keys: ${Object.keys(e).join(", ")}`);let r=Object.keys(e).filter(e=>"users"!==e&&"config"!==e&&"rules"!==e).map(r=>({key:r,count:e[r]?.length||0,permission:e.rules?.[r]||"public"}));console.log(`🔍 [API /info] RouteList:`,r);let o={...p.MP};return(0,p.R9)(r).forEach(e=>{o[e.id]=e}),a.NextResponse.json({routeList:r,port:process.env.PORT||4e3,apiSchemas:o})}catch(e){return console.error(`❌ [API /info] Error:`,e),a.NextResponse.json({message:"API 정보를 불러오는데 실패했습니다"},{status:500})}},l=new s.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/info/route",pathname:"/api/info",filename:"route",bundlePath:"app/api/info/route"},resolvedPagePath:"D:\\잡동사니\\db-json-cli\\app\\api\\info\\route.js",nextConfigOutput:"standalone",userland:t}),{requestAsyncStorage:d,staticGenerationAsyncStorage:f,serverHooks:x}=l,P="/api/info/route";function g(){return(0,i.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:f})}}};var r=require("../../../webpack-runtime.js");r.C(e);var o=e=>r(r.s=e),t=r.X(0,[276,610,759],()=>o(2935));module.exports=t})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/276.js","../../../chunks/610.js","../../../chunks/759.js","../../../webpack-runtime.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"routeList":[{"key":"test1","count":3,"permission":"public"}],"port":4000,"apiSchemas":{"register":{"id":"register","method":"POST","path":"/register","summary":"새 사용자 계정 등록","description":"이메일과 비밀번호로 새로운 사용자를 등록합니다.","auth":false,"requestBody":{"email":"user@example.com","password":"securepassword123","name":"홍길동"},"responses":{"200":{"description":"성공적으로 등록됨","example":{"accessToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","userInfo":{"id":1,"email":"user@example.com","name":"홍길동"}}},"400":{"description":"필수 필드 누락 또는 유효하지 않은 입력","example":{"message":"이메일/비밀번호가 필요합니다"}},"409":{"description":"이미 존재하는 사용자","example":{"message":"사용자가 이미 존재합니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"올바른 이메일 형식이 아닙니다"}},"500":{"description":"서버 오류","example":{"message":"등록에 실패했습니다"}}}},"login":{"id":"login","method":"POST","path":"/login","summary":"로그인 및 액세스 토큰 받기","description":"이메일과 비밀번호로 로그인하여 JWT 토큰을 받습니다.","auth":false,"requestBody":{"email":"user@example.com","password":"securepassword123"},"responses":{"200":{"description":"로그인 성공","example":{"accessToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","userInfo":{"id":1,"email":"user@example.com","name":"홍길동"}}},"400":{"description":"필수 필드 누락","example":{"message":"이메일/비밀번호가 필요합니다"}},"401":{"description":"잘못된 인증 정보","example":{"message":"인증 정보가 올바르지 않습니다"}},"429":{"description":"너무 많은 로그인 시도","example":{"message":"너무 많은 요청이 발생했습니다. 잠시 후 다시 시도해주세요"}},"500":{"description":"서버 오류","example":{"message":"로그인에 실패했습니다"}}}},"get-test1":{"id":"get-test1","method":"GET","path":"/test1","summary":"모든 test1 조회","description":"모든 test1 항목을 조회하거나 ID 범위로 필터링합니다.","auth":false,"permission":"public","count":3,"parameters":[{"name":"from","in":"query","type":"number","description":"시작 ID","required":false},{"name":"to","in":"query","type":"number","description":"종료 ID","required":false}],"responses":{"200":{"description":"성공","example":[{"id":1,"message":"예시 데이터"},{"id":2,"message":"예시 데이터"}]},"400":{"description":"잘못된 쿼리 파라미터","example":{"message":"올바르지 않은 쿼리 파라미터입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"get-test1-id":{"id":"get-test1-id","method":"GET","path":"/test1/:id","summary":"특정 test1 조회","description":"ID로 특정 test1 항목을 조회합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"성공","example":{"id":1,"message":"예시 데이터"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"post-test1":{"id":"post-test1","method":"POST","path":"/test1","summary":"새 test1 생성","description":"새로운 test1 항목을 생성합니다. ID는 자동으로 생성됩니다.","auth":false,"permission":"public","requestBody":{"message":"여기에 메시지를 입력하세요"},"responses":{"200":{"description":"생성 성공","example":{"id":4,"message":"여기에 메시지를 입력하세요"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"409":{"description":"중복된 항목","example":{"message":"중복된 항목입니다"}},"413":{"description":"요청 데이터 크기 초과","example":{"message":"요청 데이터가 너무 큽니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"생성에 실패했습니다"}}}},"put-test1-id":{"id":"put-test1-id","method":"PUT","path":"/test1/:id","summary":"test1 수정","description":"ID로 특정 test1 항목을 수정합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"requestBody":{"message":"수정된 메시지"},"responses":{"200":{"description":"수정 성공","example":{"id":1,"message":"수정된 메시지"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"409":{"description":"충돌","example":{"message":"요청이 현재 서버 상태와 충돌합니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"수정에 실패했습니다"}}}},"delete-test1-id":{"id":"delete-test1-id","method":"DELETE","path":"/test1/:id","summary":"test1 삭제","description":"ID로 특정 test1 항목을 삭제합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"삭제 성공","example":{"id":1,"message":"삭제된 메시지"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"삭제에 실패했습니다"}}}}}}
|
|
1
|
+
{"routeList":[{"key":"test1","count":3,"permission":"public"},{"key":"test2","count":3,"permission":"private"},{"key":"test3","count":3,"permission":"public"}],"port":4000,"apiSchemas":{"register":{"id":"register","method":"POST","path":"/register","summary":"새 사용자 계정 등록","description":"이메일과 비밀번호로 새로운 사용자를 등록합니다.","auth":false,"requestBody":{"email":"user@example.com","password":"securepassword123","name":"홍길동"},"responses":{"200":{"description":"성공적으로 등록됨","example":{"accessToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","userInfo":{"id":1,"email":"user@example.com","name":"홍길동"}}},"400":{"description":"필수 필드 누락 또는 유효하지 않은 입력","example":{"message":"이메일/비밀번호가 필요합니다"}},"409":{"description":"이미 존재하는 사용자","example":{"message":"사용자가 이미 존재합니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"올바른 이메일 형식이 아닙니다"}},"500":{"description":"서버 오류","example":{"message":"등록에 실패했습니다"}}}},"login":{"id":"login","method":"POST","path":"/login","summary":"로그인 및 액세스 토큰 받기","description":"이메일과 비밀번호로 로그인하여 JWT 토큰을 받습니다.","auth":false,"requestBody":{"email":"user@example.com","password":"securepassword123"},"responses":{"200":{"description":"로그인 성공","example":{"accessToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","userInfo":{"id":1,"email":"user@example.com","name":"홍길동"}}},"400":{"description":"필수 필드 누락","example":{"message":"이메일/비밀번호가 필요합니다"}},"401":{"description":"잘못된 인증 정보","example":{"message":"인증 정보가 올바르지 않습니다"}},"429":{"description":"너무 많은 로그인 시도","example":{"message":"너무 많은 요청이 발생했습니다. 잠시 후 다시 시도해주세요"}},"500":{"description":"서버 오류","example":{"message":"로그인에 실패했습니다"}}}},"get-test1":{"id":"get-test1","method":"GET","path":"/test1","summary":"모든 test1 조회","description":"모든 test1 항목을 조회하거나 ID 범위로 필터링합니다.","auth":false,"permission":"public","count":3,"parameters":[{"name":"from","in":"query","type":"number","description":"시작 ID","required":false},{"name":"to","in":"query","type":"number","description":"종료 ID","required":false}],"responses":{"200":{"description":"성공","example":[{"id":1,"message":"예시 데이터"},{"id":2,"message":"예시 데이터"}]},"400":{"description":"잘못된 쿼리 파라미터","example":{"message":"올바르지 않은 쿼리 파라미터입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"get-test1-id":{"id":"get-test1-id","method":"GET","path":"/test1/:id","summary":"특정 test1 조회","description":"ID로 특정 test1 항목을 조회합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"성공","example":{"id":1,"message":"예시 데이터"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"post-test1":{"id":"post-test1","method":"POST","path":"/test1","summary":"새 test1 생성","description":"새로운 test1 항목을 생성합니다. ID는 자동으로 생성됩니다.","auth":false,"permission":"public","requestBody":{"message":"여기에 메시지를 입력하세요"},"responses":{"200":{"description":"생성 성공","example":{"id":4,"message":"여기에 메시지를 입력하세요"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"409":{"description":"중복된 항목","example":{"message":"중복된 항목입니다"}},"413":{"description":"요청 데이터 크기 초과","example":{"message":"요청 데이터가 너무 큽니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"생성에 실패했습니다"}}}},"put-test1-id":{"id":"put-test1-id","method":"PUT","path":"/test1/:id","summary":"test1 수정","description":"ID로 특정 test1 항목을 수정합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"requestBody":{"message":"수정된 메시지"},"responses":{"200":{"description":"수정 성공","example":{"id":1,"message":"수정된 메시지"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"409":{"description":"충돌","example":{"message":"요청이 현재 서버 상태와 충돌합니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"수정에 실패했습니다"}}}},"delete-test1-id":{"id":"delete-test1-id","method":"DELETE","path":"/test1/:id","summary":"test1 삭제","description":"ID로 특정 test1 항목을 삭제합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"삭제 성공","example":{"id":1,"message":"삭제된 메시지"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"삭제에 실패했습니다"}}}},"get-test2":{"id":"get-test2","method":"GET","path":"/test2","summary":"모든 test2 조회","description":"모든 test2 항목을 조회하거나 ID 범위로 필터링합니다.","auth":true,"permission":"private","count":3,"parameters":[{"name":"from","in":"query","type":"number","description":"시작 ID","required":false},{"name":"to","in":"query","type":"number","description":"종료 ID","required":false}],"responses":{"200":{"description":"성공","example":[{"id":1,"message":"예시 데이터"},{"id":2,"message":"예시 데이터"}]},"400":{"description":"잘못된 쿼리 파라미터","example":{"message":"올바르지 않은 쿼리 파라미터입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"get-test2-id":{"id":"get-test2-id","method":"GET","path":"/test2/:id","summary":"특정 test2 조회","description":"ID로 특정 test2 항목을 조회합니다.","auth":true,"permission":"private","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"성공","example":{"id":1,"message":"예시 데이터"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"post-test2":{"id":"post-test2","method":"POST","path":"/test2","summary":"새 test2 생성","description":"새로운 test2 항목을 생성합니다. ID는 자동으로 생성됩니다.","auth":true,"permission":"private","requestBody":{"message":"여기에 메시지를 입력하세요"},"responses":{"200":{"description":"생성 성공","example":{"id":4,"message":"여기에 메시지를 입력하세요"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"409":{"description":"중복된 항목","example":{"message":"중복된 항목입니다"}},"413":{"description":"요청 데이터 크기 초과","example":{"message":"요청 데이터가 너무 큽니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"생성에 실패했습니다"}}}},"put-test2-id":{"id":"put-test2-id","method":"PUT","path":"/test2/:id","summary":"test2 수정","description":"ID로 특정 test2 항목을 수정합니다.","auth":true,"permission":"private","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"requestBody":{"message":"수정된 메시지"},"responses":{"200":{"description":"수정 성공","example":{"id":1,"message":"수정된 메시지"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"409":{"description":"충돌","example":{"message":"요청이 현재 서버 상태와 충돌합니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"수정에 실패했습니다"}}}},"delete-test2-id":{"id":"delete-test2-id","method":"DELETE","path":"/test2/:id","summary":"test2 삭제","description":"ID로 특정 test2 항목을 삭제합니다.","auth":true,"permission":"private","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"삭제 성공","example":{"id":1,"message":"삭제된 메시지"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"삭제에 실패했습니다"}}}},"get-test3":{"id":"get-test3","method":"GET","path":"/test3","summary":"모든 test3 조회","description":"모든 test3 항목을 조회하거나 ID 범위로 필터링합니다.","auth":false,"permission":"public","count":3,"parameters":[{"name":"from","in":"query","type":"number","description":"시작 ID","required":false},{"name":"to","in":"query","type":"number","description":"종료 ID","required":false}],"responses":{"200":{"description":"성공","example":[{"id":1,"message":"예시 데이터"},{"id":2,"message":"예시 데이터"}]},"400":{"description":"잘못된 쿼리 파라미터","example":{"message":"올바르지 않은 쿼리 파라미터입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"get-test3-id":{"id":"get-test3-id","method":"GET","path":"/test3/:id","summary":"특정 test3 조회","description":"ID로 특정 test3 항목을 조회합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"성공","example":{"id":1,"message":"예시 데이터"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"조회에 실패했습니다"}}}},"post-test3":{"id":"post-test3","method":"POST","path":"/test3","summary":"새 test3 생성","description":"새로운 test3 항목을 생성합니다. ID는 자동으로 생성됩니다.","auth":false,"permission":"public","requestBody":{"message":"여기에 메시지를 입력하세요"},"responses":{"200":{"description":"생성 성공","example":{"id":4,"message":"여기에 메시지를 입력하세요"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"리소스를 찾을 수 없음","example":{"message":"리소스를 찾을 수 없습니다"}},"409":{"description":"중복된 항목","example":{"message":"중복된 항목입니다"}},"413":{"description":"요청 데이터 크기 초과","example":{"message":"요청 데이터가 너무 큽니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"생성에 실패했습니다"}}}},"put-test3-id":{"id":"put-test3-id","method":"PUT","path":"/test3/:id","summary":"test3 수정","description":"ID로 특정 test3 항목을 수정합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"requestBody":{"message":"수정된 메시지"},"responses":{"200":{"description":"수정 성공","example":{"id":1,"message":"수정된 메시지"}},"400":{"description":"잘못된 요청 본문","example":{"message":"잘못된 본문입니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"409":{"description":"충돌","example":{"message":"요청이 현재 서버 상태와 충돌합니다"}},"422":{"description":"유효성 검증 실패","example":{"message":"필수 필드가 누락되었습니다"}},"500":{"description":"서버 오류","example":{"message":"수정에 실패했습니다"}}}},"delete-test3-id":{"id":"delete-test3-id","method":"DELETE","path":"/test3/:id","summary":"test3 삭제","description":"ID로 특정 test3 항목을 삭제합니다.","auth":false,"permission":"public","parameters":[{"name":"id","in":"path","type":"number","description":"항목 ID","required":true}],"responses":{"200":{"description":"삭제 성공","example":{"id":1,"message":"삭제된 메시지"}},"400":{"description":"잘못된 ID 형식","example":{"message":"올바른 ID 형식이 아닙니다"}},"401":{"description":"인증 필요","example":{"message":"토큰이 없습니다"}},"403":{"description":"접근 금지","example":{"message":"접근이 금지되었습니다"}},"404":{"description":"항목을 찾을 수 없음","example":{"message":"찾을 수 없습니다"}},"500":{"description":"서버 오류","example":{"message":"삭제에 실패했습니다"}}}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/276.js","../../../chunks/610.js","../../../chunks/759.js","../../../chunks/944.js","../../../webpack-runtime.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/276.js","../../../chunks/610.js","../../../chunks/759.js","../../../chunks/944.js","../../../webpack-runtime.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="ko"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/9e7c0563f88bbaa4.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/d5eb02ddce896298.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-020ce2426d70958e.js"/><script src="/_next/static/chunks/fd9d1056-13294f02aa6fd7af.js" async=""></script><script src="/_next/static/chunks/117-69b8841dc3821afe.js" async=""></script><script src="/_next/static/chunks/main-app-9982ced3bf7037dc.js" async=""></script><script src="/_next/static/chunks/954-b2c56f3f904cc664.js" async=""></script><script src="/_next/static/chunks/463-043b417c5568631f.js" async=""></script><script src="/_next/static/chunks/app/page-4c8ddca89b830386.js" async=""></script><script src="/_next/static/chunks/app/layout-fa3af872c59446d2.js" async=""></script><title>db-json-cli</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_746a73"><div class="page_loading-container__j4AFh">로딩 중...</div><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/9e7c0563f88bbaa4.css\",\"style\"]\n2:HL[\"/_next/static/css/d5eb02ddce896298.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"3:I[2846,[],\"\"]\n5:I[9107,[],\"ClientPageRoot\"]\n6:I[1984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"463\",\"static/chunks/463-043b417c5568631f.js\",\"931\",\"static/chunks/app/page-4c8ddca89b830386.js\"],\"default\",1]\n7:I[6984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"185\",\"static/chunks/app/layout-fa3af872c59446d2.js\"],\"default\",1]\n8:I[4707,[],\"\"]\n9:I[6423,[],\"\"]\nc:I[1060,[],\"\"]\na:{}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L3\",null,{\"buildId\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="ko"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/9e7c0563f88bbaa4.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/d5eb02ddce896298.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-020ce2426d70958e.js"/><script src="/_next/static/chunks/fd9d1056-13294f02aa6fd7af.js" async=""></script><script src="/_next/static/chunks/117-69b8841dc3821afe.js" async=""></script><script src="/_next/static/chunks/main-app-9982ced3bf7037dc.js" async=""></script><script src="/_next/static/chunks/954-b2c56f3f904cc664.js" async=""></script><script src="/_next/static/chunks/463-043b417c5568631f.js" async=""></script><script src="/_next/static/chunks/app/page-4c8ddca89b830386.js" async=""></script><script src="/_next/static/chunks/app/layout-fa3af872c59446d2.js" async=""></script><title>db-json-cli</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_746a73"><div class="page_loading-container__j4AFh">로딩 중...</div><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/9e7c0563f88bbaa4.css\",\"style\"]\n2:HL[\"/_next/static/css/d5eb02ddce896298.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"3:I[2846,[],\"\"]\n5:I[9107,[],\"ClientPageRoot\"]\n6:I[1984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"463\",\"static/chunks/463-043b417c5568631f.js\",\"931\",\"static/chunks/app/page-4c8ddca89b830386.js\"],\"default\",1]\n7:I[6984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"185\",\"static/chunks/app/layout-fa3af872c59446d2.js\"],\"default\",1]\n8:I[4707,[],\"\"]\n9:I[6423,[],\"\"]\nc:I[1060,[],\"\"]\na:{}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L3\",null,{\"buildId\":\"8X1owD5Rl_inFPGRZKLYo\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"\"],\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[[\"$L4\",[\"$\",\"$L5\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$6\"}],[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/d5eb02ddce896298.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]],null],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/9e7c0563f88bbaa4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":\"$a\"}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}]]\n4:null\n"])</script></body></html>
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
5:I[4707,[],""]
|
|
5
5
|
6:I[6423,[],""]
|
|
6
6
|
7:{}
|
|
7
|
-
0:["
|
|
7
|
+
0:["8X1owD5Rl_inFPGRZKLYo",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d5eb02ddce896298.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9e7c0563f88bbaa4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}],"params":"$7"}]],null],null],["$L8",null]]]]
|
|
8
8
|
8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]]
|
|
9
9
|
1:null
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"/_not-found/page": "app/_not-found/page.js",
|
|
3
3
|
"/page": "app/page.js",
|
|
4
|
-
"/api/info/route": "app/api/info/route.js",
|
|
5
4
|
"/api/login/route": "app/api/login/route.js",
|
|
6
5
|
"/api/[resource]/route": "app/api/[resource]/route.js",
|
|
6
|
+
"/api/[resource]/[id]/route": "app/api/[resource]/[id]/route.js",
|
|
7
7
|
"/api/register/route": "app/api/register/route.js",
|
|
8
|
-
"/api/
|
|
8
|
+
"/api/info/route": "app/api/info/route.js"
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=759,exports.ids=[759],exports.modules={7431:(e,s,i)=>{i.d(s,{MP:()=>
|
|
1
|
+
"use strict";exports.id=759,exports.ids=[759],exports.modules={7431:(e,s,i)=>{i.d(s,{MP:()=>a,Qj:()=>o,R9:()=>r});let o={EMAIL_PASSWORD_REQUIRED:"이메일/비밀번호가 필요합니다",INVALID_CREDENTIALS:"인증 정보가 올바르지 않습니다",USER_ALREADY_EXISTS:"사용자가 이미 존재합니다",NO_TOKEN:"토큰이 없습니다",INVALID_TOKEN:"유효하지 않은 토큰입니다",TOKEN_EXPIRED:"토큰이 만료되었습니다",UNAUTHORIZED:"권한이 없습니다",INVALID_EMAIL_FORMAT:"올바른 이메일 형식이 아닙니다",PASSWORD_TOO_SHORT:"비밀번호는 최소 8자 이상이어야 합니다",INVALID_ID_FORMAT:"올바른 ID 형식이 아닙니다",INVALID_QUERY_PARAMS:"올바르지 않은 쿼리 파라미터입니다",MISSING_REQUIRED_FIELDS:"필수 필드가 누락되었습니다",RESOURCE_NOT_FOUND:"리소스를 찾을 수 없습니다",ITEM_NOT_FOUND:"찾을 수 없습니다",INVALID_BODY:"잘못된 본문입니다",DUPLICATE_ENTRY:"중복된 항목입니다",RESOURCE_ALREADY_EXISTS:"이미 존재하는 리소스입니다",LOGIN_FAILED:"로그인에 실패했습니다",REGISTER_FAILED:"등록에 실패했습니다",FETCH_FAILED:"조회에 실패했습니다",CREATE_FAILED:"생성에 실패했습니다",UPDATE_FAILED:"수정에 실패했습니다",DELETE_FAILED:"삭제에 실패했습니다",DATABASE_ERROR:"데이터베이스 오류가 발생했습니다",SERVER_ERROR:"서버 오류가 발생했습니다",DATABASE_CONNECTION_FAILED:"데이터베이스 연결에 실패했습니다",TOO_MANY_REQUESTS:"너무 많은 요청이 발생했습니다. 잠시 후 다시 시도해주세요",RATE_LIMIT_EXCEEDED:"요청 제한을 초과했습니다",PAYLOAD_TOO_LARGE:"요청 데이터가 너무 큽니다",FILE_TOO_LARGE:"파일 크기가 너무 큽니다",METHOD_NOT_ALLOWED:"허용되지 않은 메서드입니다",FORBIDDEN:"접근이 금지되었습니다",SERVICE_UNAVAILABLE:"서비스를 일시적으로 사용할 수 없습니다",CONFLICT:"요청이 현재 서버 상태와 충돌합니다",GONE:"요청한 리소스가 더 이상 존재하지 않습니다"},a={register:{id:"register",method:"POST",path:"/register",summary:"새 사용자 계정 등록",description:"이메일과 비밀번호로 새로운 사용자를 등록합니다.",auth:!1,requestBody:{email:"user@example.com",password:"securepassword123",name:"홍길동"},responses:{200:{description:"성공적으로 등록됨",example:{accessToken:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",refreshToken:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",userInfo:{id:1,email:"user@example.com",name:"홍길동"}}},400:{description:"필수 필드 누락 또는 유효하지 않은 입력",example:{message:o.EMAIL_PASSWORD_REQUIRED}},409:{description:"이미 존재하는 사용자",example:{message:o.USER_ALREADY_EXISTS}},422:{description:"유효성 검증 실패",example:{message:o.INVALID_EMAIL_FORMAT}},500:{description:"서버 오류",example:{message:o.REGISTER_FAILED}}}},login:{id:"login",method:"POST",path:"/login",summary:"로그인 및 액세스 토큰 받기",description:"이메일과 비밀번호로 로그인하여 JWT 토큰을 받습니다.",auth:!1,requestBody:{email:"user@example.com",password:"securepassword123"},responses:{200:{description:"로그인 성공",example:{accessToken:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",refreshToken:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",userInfo:{id:1,email:"user@example.com",name:"홍길동"}}},400:{description:"필수 필드 누락",example:{message:o.EMAIL_PASSWORD_REQUIRED}},401:{description:"잘못된 인증 정보",example:{message:o.INVALID_CREDENTIALS}},429:{description:"너무 많은 로그인 시도",example:{message:o.TOO_MANY_REQUESTS}},500:{description:"서버 오류",example:{message:o.LOGIN_FAILED}}}}},r=e=>{let s=[];return e.forEach(e=>{let i="private"===e.permission;s.push({id:`get-${e.key}`,method:"GET",path:`/${e.key}`,summary:`모든 ${e.key} 조회`,description:`모든 ${e.key} 항목을 조회하거나 ID 범위로 필터링합니다.`,auth:i,permission:e.permission,count:e.count,parameters:[{name:"from",in:"query",type:"number",description:"시작 ID",required:!1},{name:"to",in:"query",type:"number",description:"종료 ID",required:!1}],responses:{200:{description:"성공",example:[{id:1,message:"예시 데이터"},{id:2,message:"예시 데이터"}]},400:{description:"잘못된 쿼리 파라미터",example:{message:o.INVALID_QUERY_PARAMS}},401:{description:"인증 필요",example:{message:o.NO_TOKEN}},403:{description:"접근 금지",example:{message:o.FORBIDDEN}},404:{description:"리소스를 찾을 수 없음",example:{message:o.RESOURCE_NOT_FOUND}},500:{description:"서버 오류",example:{message:o.FETCH_FAILED}}}}),s.push({id:`get-${e.key}-id`,method:"GET",path:`/${e.key}/:id`,summary:`특정 ${e.key} 조회`,description:`ID로 특정 ${e.key} 항목을 조회합니다.`,auth:i,permission:e.permission,parameters:[{name:"id",in:"path",type:"number",description:"항목 ID",required:!0}],responses:{200:{description:"성공",example:{id:1,message:"예시 데이터"}},400:{description:"잘못된 ID 형식",example:{message:o.INVALID_ID_FORMAT}},401:{description:"인증 필요",example:{message:o.NO_TOKEN}},403:{description:"접근 금지",example:{message:o.FORBIDDEN}},404:{description:"항목을 찾을 수 없음",example:{message:o.ITEM_NOT_FOUND}},500:{description:"서버 오류",example:{message:o.FETCH_FAILED}}}}),s.push({id:`post-${e.key}`,method:"POST",path:`/${e.key}`,summary:`새 ${e.key} 생성`,description:`새로운 ${e.key} 항목을 생성합니다. ID는 자동으로 생성됩니다.`,auth:i,permission:e.permission,requestBody:{message:"여기에 메시지를 입력하세요"},responses:{200:{description:"생성 성공",example:{id:4,message:"여기에 메시지를 입력하세요"}},400:{description:"잘못된 요청 본문",example:{message:o.INVALID_BODY}},401:{description:"인증 필요",example:{message:o.NO_TOKEN}},403:{description:"접근 금지",example:{message:o.FORBIDDEN}},404:{description:"리소스를 찾을 수 없음",example:{message:o.RESOURCE_NOT_FOUND}},409:{description:"중복된 항목",example:{message:o.DUPLICATE_ENTRY}},413:{description:"요청 데이터 크기 초과",example:{message:o.PAYLOAD_TOO_LARGE}},422:{description:"유효성 검증 실패",example:{message:o.MISSING_REQUIRED_FIELDS}},500:{description:"서버 오류",example:{message:o.CREATE_FAILED}}}}),s.push({id:`put-${e.key}-id`,method:"PUT",path:`/${e.key}/:id`,summary:`${e.key} 수정`,description:`ID로 특정 ${e.key} 항목을 수정합니다.`,auth:i,permission:e.permission,parameters:[{name:"id",in:"path",type:"number",description:"항목 ID",required:!0}],requestBody:{message:"수정된 메시지"},responses:{200:{description:"수정 성공",example:{id:1,message:"수정된 메시지"}},400:{description:"잘못된 요청 본문",example:{message:o.INVALID_BODY}},401:{description:"인증 필요",example:{message:o.NO_TOKEN}},403:{description:"접근 금지",example:{message:o.FORBIDDEN}},404:{description:"항목을 찾을 수 없음",example:{message:o.ITEM_NOT_FOUND}},409:{description:"충돌",example:{message:o.CONFLICT}},422:{description:"유효성 검증 실패",example:{message:o.MISSING_REQUIRED_FIELDS}},500:{description:"서버 오류",example:{message:o.UPDATE_FAILED}}}}),s.push({id:`delete-${e.key}-id`,method:"DELETE",path:`/${e.key}/:id`,summary:`${e.key} 삭제`,description:`ID로 특정 ${e.key} 항목을 삭제합니다.`,auth:i,permission:e.permission,parameters:[{name:"id",in:"path",type:"number",description:"항목 ID",required:!0}],responses:{200:{description:"삭제 성공",example:{id:1,message:"삭제된 메시지"}},400:{description:"잘못된 ID 형식",example:{message:o.INVALID_ID_FORMAT}},401:{description:"인증 필요",example:{message:o.NO_TOKEN}},403:{description:"접근 금지",example:{message:o.FORBIDDEN}},404:{description:"항목을 찾을 수 없음",example:{message:o.ITEM_NOT_FOUND}},500:{description:"서버 오류",example:{message:o.DELETE_FAILED}}}})}),s}},53:(e,s,i)=>{i.d(s,{VK:()=>p,bY:()=>m});var o=i(788),a=i(5315);let r=null,t=null,n=()=>{if(process.env.DB_PATH){let e=a.resolve(process.env.DB_PATH);return console.log(`🔍 [findDBPath] Using DB_PATH from env: ${e}`),e}console.log(`⚠️ [findDBPath] DB_PATH not set, searching...`);let e=process.cwd(),s=a.parse(e).root;for(;e!==s;){let s=a.join(e,"db.json");if(o.existsSync(s))return console.log(`✅ [findDBPath] Found db.json at: ${s}`),s;e=a.dirname(e)}let i=a.join(process.cwd(),"db.json");return console.log(`📝 [findDBPath] Creating new db.json at: ${i}`),i},p=async()=>{let e=process.env.DB_PATH;if(e&&t&&t!==a.resolve(e)&&(console.log(`🔄 [getDB] DB_PATH changed, clearing cache`),r=null,t=null),r)return console.log(`💾 [getDB] Returning cached DB from: ${t}`),r;t||(t=n()),console.log(`📂 [getDB] Final dbPath: ${t}`),console.log(`🔍 [getDB] Checking if file exists...`);let s={users:[],rules:{test1:"public",test2:"private",test3:"public"},test1:[{id:1,message:"good"},{id:2,message:"good"},{id:3,message:"good"}],test2:[{id:1,message:"good"},{id:2,message:"good"},{id:3,message:"good"}],test3:[{id:1,message:"good"},{id:2,message:"good"},{id:3,message:"good"}]};if(o.existsSync(t)){console.log(`📖 [getDB] File exists! Reading from: ${t}`);try{let e=await o.readJson(t);console.log(`📊 [getDB] Successfully read DB. Keys: ${Object.keys(e).join(", ")}`),console.log(`📊 [getDB] Users count: ${e.users?.length||0}`),console.log(`📊 [getDB] List count: ${e.list?.length||0}`),r=e}catch(e){throw console.error(`❌ [getDB] Error reading db.json:`,e),e}}else console.log(`🆕 [getDB] File doesn't exist. Creating default db.json at: ${t}`),r=s,await o.writeJson(t,s,{spaces:2});return r},m=async e=>{t||(t=n()),console.log(`💾 [saveDB] Saving to: ${t}`),r=e,await o.writeJson(t,e,{spaces:2})}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="ko"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/9e7c0563f88bbaa4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-020ce2426d70958e.js"/><script src="/_next/static/chunks/fd9d1056-13294f02aa6fd7af.js" async=""></script><script src="/_next/static/chunks/117-69b8841dc3821afe.js" async=""></script><script src="/_next/static/chunks/main-app-9982ced3bf7037dc.js" async=""></script><script src="/_next/static/chunks/954-b2c56f3f904cc664.js" async=""></script><script src="/_next/static/chunks/app/layout-fa3af872c59446d2.js" async=""></script><meta name="robots" content="noindex"/><title>db-json-cli</title><title>404: This page could not be found.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_746a73"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/9e7c0563f88bbaa4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[2846,[],\"\"]\n4:I[4707,[],\"\"]\n5:I[6423,[],\"\"]\n6:I[6984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"185\",\"static/chunks/app/layout-fa3af872c59446d2.js\"],\"default\",1]\nc:I[1060,[],\"\"]\n7:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n8:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n9:{\"display\":\"inline-block\"}\na:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="ko"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/9e7c0563f88bbaa4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-020ce2426d70958e.js"/><script src="/_next/static/chunks/fd9d1056-13294f02aa6fd7af.js" async=""></script><script src="/_next/static/chunks/117-69b8841dc3821afe.js" async=""></script><script src="/_next/static/chunks/main-app-9982ced3bf7037dc.js" async=""></script><script src="/_next/static/chunks/954-b2c56f3f904cc664.js" async=""></script><script src="/_next/static/chunks/app/layout-fa3af872c59446d2.js" async=""></script><meta name="robots" content="noindex"/><title>db-json-cli</title><title>404: This page could not be found.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_746a73"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/9e7c0563f88bbaa4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[2846,[],\"\"]\n4:I[4707,[],\"\"]\n5:I[6423,[],\"\"]\n6:I[6984,[\"954\",\"static/chunks/954-b2c56f3f904cc664.js\",\"185\",\"static/chunks/app/layout-fa3af872c59446d2.js\"],\"default\",1]\nc:I[1060,[],\"\"]\n7:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n8:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n9:{\"display\":\"inline-block\"}\na:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"8X1owD5Rl_inFPGRZKLYo\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/9e7c0563f88bbaa4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$8\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$9\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$a\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":{}}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" defer=""></script><script src="/_next/static/chunks/framework-f66176bb897dc684.js" defer=""></script><script src="/_next/static/chunks/main-a3aef5995f5a9328.js" defer=""></script><script src="/_next/static/chunks/pages/_app-72b849fbd24ac258.js" defer=""></script><script src="/_next/static/chunks/pages/_error-7ba65e1336b92748.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-020ce2426d70958e.js" defer=""></script><script src="/_next/static/chunks/framework-f66176bb897dc684.js" defer=""></script><script src="/_next/static/chunks/main-a3aef5995f5a9328.js" defer=""></script><script src="/_next/static/chunks/pages/_app-72b849fbd24ac258.js" defer=""></script><script src="/_next/static/chunks/pages/_error-7ba65e1336b92748.js" defer=""></script><script src="/_next/static/8X1owD5Rl_inFPGRZKLYo/_buildManifest.js" defer=""></script><script src="/_next/static/8X1owD5Rl_inFPGRZKLYo/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"8X1owD5Rl_inFPGRZKLYo","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{},"edge":{},"encryptionKey":"
|
|
1
|
+
{"node":{},"edge":{},"encryptionKey":"8fAUS+kECCbXcc3kGVgMrJazjwF+MhUE9Ev2pgkFOd8="}
|
package/bin/cli.js
CHANGED
|
@@ -5,12 +5,11 @@ import { hideBin } from "yargs/helpers";
|
|
|
5
5
|
import path from "path";
|
|
6
6
|
import { fileURLToPath } from "url";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
|
-
import fs from "fs";
|
|
8
|
+
import fs from "fs";
|
|
9
9
|
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = path.dirname(__filename);
|
|
12
12
|
|
|
13
|
-
// package.json에서 버전 읽기
|
|
14
13
|
const packageJsonPath = path.join(__dirname, "..", "package.json");
|
|
15
14
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
|
|
16
15
|
const version = packageJson.version;
|
|
@@ -24,14 +23,19 @@ const argv = yargs(hideBin(process.argv))
|
|
|
24
23
|
|
|
25
24
|
const standalonePath = path.join(__dirname, "..", ".next", "standalone");
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
// ✅ 절대 경로로 변환
|
|
27
|
+
const dbFullPath = path.resolve(argv.db);
|
|
28
|
+
|
|
29
|
+
// ✅ 환경변수 설정
|
|
30
|
+
process.env.DB_PATH = dbFullPath;
|
|
28
31
|
process.env.PORT = argv.port.toString();
|
|
29
32
|
process.env.HOSTNAME = "0.0.0.0";
|
|
30
33
|
|
|
31
|
-
console.log(`✅ db-json-cli v${version} running on http://localhost:${argv.port}
|
|
34
|
+
console.log(`✅ db-json-cli v${version} running on http://localhost:${argv.port}`);
|
|
35
|
+
console.log(`📁 DB Path: ${dbFullPath}\n`);
|
|
32
36
|
|
|
33
37
|
spawn("node", [path.join(standalonePath, "server.js")], {
|
|
34
38
|
cwd: standalonePath,
|
|
35
39
|
stdio: "inherit",
|
|
36
|
-
env: process.env,
|
|
40
|
+
env: process.env, // ✅ 환경변수 전달
|
|
37
41
|
});
|
package/package.json
CHANGED
package/.next/standalone/db.json
DELETED
|
File without changes
|
|
File without changes
|