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

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