Refactored api path.
This commit is contained in:
parent
cf228c92a2
commit
a147506d7e
3
.gitignore
vendored
3
.gitignore
vendored
@ -22,3 +22,6 @@ dist-ssr
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
# Local Netlify folder
|
||||
.netlify
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
import type {Handler, HandlerContext, HandlerEvent} from "@netlify/functions";
|
||||
|
||||
const handler: Handler = async (event: HandlerEvent, context: HandlerContext) => {
|
||||
// your server-side functionality
|
||||
return {
|
||||
statusCode: 200,
|
||||
body: JSON.stringify({message: "Hello World"}),
|
||||
};
|
||||
};
|
||||
|
||||
export {handler};
|
||||
9
netlify/functions/voice/voice.ts
Normal file
9
netlify/functions/voice/voice.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import {Handler, HandlerContext, HandlerEvent} from "@netlify/functions";
|
||||
|
||||
export const handler: Handler = async (event: HandlerEvent, context: HandlerContext) => {
|
||||
// your server-side functionality
|
||||
return {
|
||||
statusCode: 200,
|
||||
body: JSON.stringify({message: "Hello World"}),
|
||||
};
|
||||
};
|
||||
17
package-lock.json
generated
17
package-lock.json
generated
@ -17,6 +17,7 @@
|
||||
"@cloudflare/workers-types": "^4.20230807.0",
|
||||
"@netlify/functions": "^1.6.0",
|
||||
"@typed-mxgraph/typed-mxgraph": "^1.0.8",
|
||||
"@types/node": "^14.18.54",
|
||||
"dexie": "^3.2.4",
|
||||
"dexie-observable": "^4.0.1-beta.13",
|
||||
"earcut": "^2.2.4",
|
||||
@ -30,7 +31,7 @@
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.0.2",
|
||||
"typescript": "^4.9.5",
|
||||
"vite": "^4.3.9",
|
||||
"vite-plugin-api": "^0.1.11",
|
||||
"vite-plugin-cp": "^1.0.0"
|
||||
@ -980,9 +981,9 @@
|
||||
"integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA=="
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz",
|
||||
"integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg=="
|
||||
"version": "14.18.54",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.54.tgz",
|
||||
"integrity": "sha512-uq7O52wvo2Lggsx1x21tKZgqkJpvwCseBBPtX/nKQfpVlEsLOb11zZ1CRsWUKvJF0+lzuA9jwvA7Pr2Wt7i3xw=="
|
||||
},
|
||||
"node_modules/@types/prop-types": {
|
||||
"version": "15.7.5",
|
||||
@ -3850,16 +3851,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz",
|
||||
"integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==",
|
||||
"version": "4.9.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
|
||||
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
|
||||
"devOptional": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
"node": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/universalify": {
|
||||
|
||||
17
package.json
17
package.json
@ -16,25 +16,26 @@
|
||||
"@babylonjs/gui": "^6.15.0",
|
||||
"@babylonjs/havok": "1.1.1",
|
||||
"@babylonjs/inspector": "^6.15.0",
|
||||
"@babylonjs/serializers": "^6.15.0",
|
||||
"@babylonjs/loaders": "^6.15.0",
|
||||
"@babylonjs/serializers": "^6.15.0",
|
||||
"@cloudflare/workers-types": "^4.20230807.0",
|
||||
"@netlify/functions": "^1.6.0",
|
||||
"ring-client-api": "11.7.7",
|
||||
"@typed-mxgraph/typed-mxgraph": "^1.0.8",
|
||||
"@types/node": "^14.18.54",
|
||||
"dexie": "^3.2.4",
|
||||
"dexie-observable": "^4.0.1-beta.13",
|
||||
"query-string": "^8.1.0",
|
||||
"earcut": "^2.2.4",
|
||||
"loglevel": "^1.8.1",
|
||||
"mxgraph": "^4.2.2",
|
||||
"@typed-mxgraph/typed-mxgraph": "^1.0.8",
|
||||
"p2p-data-channel": "^1.10.7",
|
||||
"query-string": "^8.1.0",
|
||||
"recordrtc": "^5.6.2",
|
||||
"ring-client-api": "11.7.7",
|
||||
"round": "^2.0.1",
|
||||
"earcut": "^2.2.4",
|
||||
"uuid": "^9.0.0",
|
||||
"p2p-data-channel": "^1.10.7"
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.0.2",
|
||||
"typescript": "^4.9.5",
|
||||
"vite": "^4.3.9",
|
||||
"vite-plugin-api": "^0.1.11",
|
||||
"vite-plugin-cp": "^1.0.0"
|
||||
|
||||
@ -4,10 +4,6 @@ import {defineConfig} from "vite";
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 3001,
|
||||
proxy: { '/api': 'https://local.immersiveidea.com' ,
|
||||
'/login': 'https://local.immersiveidea.com',
|
||||
'/callback': 'https://local.immersiveidea.com'
|
||||
}
|
||||
},
|
||||
base: "/"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user