-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
38 lines (31 loc) · 1.05 KB
/
index.ts
File metadata and controls
38 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { initTRPC } from '@trpc/server';
// import type { Application, ApplicationModelType, ApplicationServiceType } from '@arken/seer-protocol/types';
import { z } from 'zod';
import { createRouter as createCoreRouter } from './core/core.router';
import * as dotenv from 'dotenv';
export * as Core from './core/core.router';
export const t = initTRPC.context<{}>().create();
export const router = t.router;
export const procedure = t.procedure;
export const createCallerFactory = t.createCallerFactory;
export const createRouter = (service: any) =>
router({
core: createCoreRouter(t),
});
export type Router = ReturnType<typeof createRouter>;
dotenv.config();
// export default class Server implements Application {
// router: Router;
// service: ApplicationServiceType = {};
// model: ApplicationModelType = {};
// server: any;
// http: any;
// https: any;
// isHttps: boolean;
// cache: any;
// db: any;
// services: any;
// applications: any;
// application: any;
// filters: Record<string, any> = { applicationId: null };
// }