added plaground endpoint configuration
This commit is contained in:
@@ -2,4 +2,5 @@ export const Config = {
|
||||
jwt_secret:
|
||||
"T4kE6/tIqCVEZYg9lwsqeJjYfOoXTXSXDEMyParsJjj57CjSdkrfPOLWP74/9lJpcBA=",
|
||||
token_duration: "365d",
|
||||
api_url: "http://localhost:3000",
|
||||
};
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import express from "express";
|
||||
import { expressHandler } from "trpc-playground/handlers/express";
|
||||
import { AppRouter } from "./app";
|
||||
import { Config } from "./config";
|
||||
|
||||
export const runPlayground = async (appRouter: AppRouter) => {
|
||||
const app = express();
|
||||
|
||||
const trpcApiEndpoint = "http://localhost:3000";
|
||||
const trpcApiEndpoint = Config.api_url;
|
||||
const playgroundEndpoint = "/";
|
||||
|
||||
app.use(
|
||||
|
||||
Reference in New Issue
Block a user