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",
"http://localhost:3000", "http://localhost:3000",
"http://localhost:5173", "http://localhost:5173",
"https://govorov.itqop.pw"
] ]
app.add_middleware( app.add_middleware(
@ -18,7 +19,7 @@ app.add_middleware(
allow_headers=["*"], allow_headers=["*"],
) )
app.include_router(calculation.router) app.include_router(calculation.router, prefix="/api")
@app.get("/") @app.get("/")
async def read_root(): async def read_root():

File diff suppressed because it is too large Load Diff

View File

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