updated examples

This commit is contained in:
dswbx
2024-11-23 11:21:25 +01:00
parent 2433833ad0
commit f70e2b2e10
13 changed files with 74 additions and 64 deletions

View File

@@ -8,15 +8,13 @@ export default serve(
connection: {
type: "libsql",
config: {
url: env.DB_URL,
authToken: env.DB_TOKEN
url: "http://localhost:8080"
}
}
}),
onBuilt: async (app) => {
app.modules.server.get("/", (c) => c.json({ hello: "world" }));
},
setAdminHtml: true
app.modules.server.get("/hello", (c) => c.json({ hello: "world" }));
}
},
manifest
);