fix flags validation and new stack architech design

This commit is contained in:
Aman Varshney
2025-04-19 21:02:55 +05:30
parent da087151c3
commit 1cb5c0caab
8 changed files with 1086 additions and 1158 deletions

View File

@@ -96,8 +96,6 @@ export async function createContext(opts: CreateExpressContextOptions) {
}
{{else}}
// Default or fallback context if backend is not recognized or none
// This might need adjustment based on your default behavior
export async function createContext() {
return {
session: null,

View File

@@ -68,5 +68,5 @@ const app = new Elysia()
{{/if}}
.get("/", () => "OK")
.listen(3000, () => {
console.log(`Server is running on http://localhost:3000`);
console.log("Server is running on http://localhost:3000");
});

View File

@@ -70,7 +70,6 @@ app.use("/trpc/*", trpcServer({
{{/if}}
{{#if (includes examples "ai")}}
// AI chat endpoint
app.post("/ai", async (c) => {
const body = await c.req.json();
const messages = body.messages || [];