17 lines
426 B
TypeScript
17 lines
426 B
TypeScript
import { Elysia, t } from "elysia";
|
|
import { betterAuthElysia } from "./auth";
|
|
import { syncApp } from "./routes/sync";
|
|
import { DBOS } from "@dbos-inc/dbos-sdk";
|
|
import "./workflows/sync";
|
|
import "./dbos.ts";
|
|
|
|
const app = new Elysia()
|
|
.use(betterAuthElysia)
|
|
.group("/api", (app) => app.use(syncApp))
|
|
.listen(4000);
|
|
|
|
export type App = typeof app;
|
|
|
|
await DBOS.launch({
|
|
conductorKey: process.env.DBOS_CONDUCTOR_KEY,
|
|
});
|