BREAKING: merge API routes and pages concept (#53)
This commit merges API routes and pages into a single concept. The pages/api folder is now not special anymore.
This commit is contained in:
@@ -6,7 +6,7 @@ import * as $0 from "./pages/index.tsx";
|
||||
import * as $1 from "./pages/static.tsx";
|
||||
import * as $2 from "./pages/props/[id].tsx";
|
||||
import * as $3 from "./pages/api/get_only.ts";
|
||||
import * as $4 from "./pages/api/name.ts";
|
||||
import * as $4 from "./pages/intercept.tsx";
|
||||
import * as $5 from "./pages/[name].tsx";
|
||||
|
||||
const routes = {
|
||||
@@ -15,7 +15,7 @@ const routes = {
|
||||
"./pages/static.tsx": $1,
|
||||
"./pages/props/[id].tsx": $2,
|
||||
"./pages/api/get_only.ts": $3,
|
||||
"./pages/api/name.ts": $4,
|
||||
"./pages/intercept.tsx": $4,
|
||||
"./pages/[name].tsx": $5,
|
||||
},
|
||||
baseUrl: import.meta.url,
|
||||
|
||||
Reference in New Issue
Block a user