fixes
This commit is contained in:
parent
e02839af96
commit
8a95c116f1
|
@ -8,6 +8,7 @@ origins = [
|
|||
"http://localhost",
|
||||
"http://localhost:3000",
|
||||
"http://localhost:5173",
|
||||
"https://govorov.itqop.pw"
|
||||
]
|
||||
|
||||
app.add_middleware(
|
||||
|
@ -18,7 +19,7 @@ app.add_middleware(
|
|||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
app.include_router(calculation.router)
|
||||
app.include_router(calculation.router, prefix="/api")
|
||||
|
||||
@app.get("/")
|
||||
async def read_root():
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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'],
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue