mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-01-31 14:57:49 +00:00
✨ feat: Initialized project
This commit is contained in:
17
apps/backend/src/index.ts
Normal file
17
apps/backend/src/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Elysia } from "elysia";
|
||||
import { swagger } from "@elysiajs/swagger";
|
||||
import { db } from "@minikura/db";
|
||||
|
||||
const app = new Elysia()
|
||||
.use(swagger())
|
||||
.get("/", async () => {
|
||||
return "Hello Elysia";
|
||||
})
|
||||
.get("/hello", "Do you miss me?")
|
||||
.listen(3000, async () => {
|
||||
console.log("Server is running on port 3000");
|
||||
const result = await db.query.server.findMany();
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
export type App = typeof app;
|
||||
Reference in New Issue
Block a user