Archived
1
0

feat: Структура проекта

This commit is contained in:
2025-10-20 12:07:37 +03:00
parent 27da4d8dd6
commit 3bd6547226
27 changed files with 3884 additions and 0 deletions

14
apps/backend/src/index.ts Normal file
View File

@ -0,0 +1,14 @@
import { Elysia } from 'elysia';
const app = new Elysia()
.onAfterHandle(({ request, set }) => {
const origin = request.headers.get("origin");
if (origin === "http://localhost:8081") {
set.headers["Access-Control-Allow-Origin"] = origin;
}
})
.get('/', () => 'index')
export default app