feat: implemented a basic store and emulatorjs
This commit is contained in:
parent
2f32cbc730
commit
7286541822
121 changed files with 5900 additions and 1092 deletions
|
|
@ -1,17 +1,21 @@
|
|||
import { cors } from "@elysiajs/cors";
|
||||
import Elysia from "elysia";
|
||||
import { RPC_PORT } from "../../shared/constants";
|
||||
import { RPC_PORT } from "@shared/constants";
|
||||
import clients from "./clients";
|
||||
import { settings } from "./settings";
|
||||
import { settings } from "./settings/settings";
|
||||
import { system } from "./system";
|
||||
import { store } from "./store/store";
|
||||
import { host } from "../utils/host";
|
||||
import { jobs } from "./jobs/jobs";
|
||||
|
||||
const api = new Elysia({ serve: {} })
|
||||
.use([cors(), clients, settings, system]);
|
||||
.use([cors(), clients, settings, system, store, jobs]);
|
||||
|
||||
export type RommAPIType = typeof clients;
|
||||
export type SettingsAPIType = typeof settings;
|
||||
export type SystemAPIType = typeof system;
|
||||
export type StoreAPIType = typeof store;
|
||||
export type JobsAPIType = typeof jobs;
|
||||
|
||||
export function RunAPIServer ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue