From 58e0eaa2400c7faeb3c303da1da2803a078b3119 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 2 Dec 2023 12:15:16 +0100 Subject: [PATCH] updated reference to createRouter into createServerRouter --- src/jorel.ts | 2 +- template/server/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jorel.ts b/src/jorel.ts index c72f5ec..13c3e25 100644 --- a/src/jorel.ts +++ b/src/jorel.ts @@ -1,4 +1,4 @@ export * from "./jorel/createRoutes"; export * from "./jorel/createClientRoutes"; -export * from "./jorel/createRouter"; +export * from "./jorel/createServerRouter"; export * from "./jorel/createServerRoute"; \ No newline at end of file diff --git a/template/server/index.ts b/template/server/index.ts index 897fdf6..38aed1f 100644 --- a/template/server/index.ts +++ b/template/server/index.ts @@ -3,7 +3,7 @@ import { routes } from "@template/shared"; import { getKryptonians } from "./routes/getKryptonians"; import { createExpressServer } from "./adapters/createExpressServer"; -const router = Kryptonian.Jorel.createRouter({ +const router = Kryptonian.Jorel.createServerRouter({ routes, spaceships: { getKryptonians