Browse Source

Adding API docs for app developers.

- Fixes #99.
pull/1/head
Dessalines 4 years ago
parent
commit
760577e038
  1. 2
      src/env.ts
  2. 2
      src/version.ts
  3. 2
      stack.prod.yaml

2
src/env.ts

@ -1,4 +1,4 @@
let host = `${window.location.hostname}`;
let port = `${window.location.port == "4444" ? '8536' : window.location.port}`;
let endpoint = `${host}:${port}`;
export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/service/ws`;
export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/api/v1/ws`;

2
src/version.ts

@ -1 +1 @@
export let version: string = "v0.0.5-0-gf34ba11";
export let version: string = "v0.0.5-11-g8e22de3";

2
stack.prod.yaml

@ -48,7 +48,7 @@ spec:
backend:
serviceName: lemmy-ui--prod
servicePort: 5000
- path: /service/ws
- path: /api/v1/ws
backend:
serviceName: lemmy-server--prod
servicePort: 8536
Loading…
Cancel
Save