This commit is contained in:
root 2025-04-17 16:10:37 +02:00
parent e02839af96
commit 8a95c116f1
3 changed files with 42 additions and 293 deletions

View File

@ -8,6 +8,7 @@ origins = [
"http://localhost",
"http://localhost:3000",
"http://localhost:5173",
"https://govorov.itqop.pw"
]
app.add_middleware(
@ -18,8 +19,8 @@ app.add_middleware(
allow_headers=["*"],
)
app.include_router(calculation.router)
app.include_router(calculation.router, prefix="/api")
@app.get("/")
async def read_root():
return {"message": "Welcome to the Glass Cutting Optimization API"}
return {"message": "Welcome to the Glass Cutting Optimization API"}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,10 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: true,
allowedHosts: ['govorov.itqop.pw', 'localhost'],
},
})