request-between-growi-and-proxy.ts 520 B

12345678910111213141516171819202122232425
  1. import type { Request } from 'express';
  2. export interface BlockKitRequest {
  3. // Block Kit properties
  4. body: {
  5. view?: string,
  6. blocks?: string
  7. },
  8. }
  9. export type RequestFromGrowi = Request & BlockKitRequest & {
  10. // appended by GROWI
  11. headers:{'x-growi-gtop-tokens'?:string},
  12. // will be extracted from header
  13. tokenGtoPs: string[],
  14. };
  15. export type RequestFromProxy = Request & {
  16. // appended by Proxy
  17. headers:{'x-growi-ptog-token'?:string},
  18. // will be extracted from header
  19. tokenPtoG: string[],
  20. };