export const myApi = HttpApi.make('myApi').add(
HttpApiGroup.make('chat').add(
HttpApiEndpoint.get('getStream', '/stream')
.setUrlParams(
Schema.Struct({
message: Schema.String
})
)
.addSuccess(
Schema.String.pipe(
HttpApiSchema.withEncoding({
kind: 'Text',
contentType: 'application/octet-stream'
})
)
)
)
);
export const myApi = HttpApi.make('myApi').add(
HttpApiGroup.make('chat').add(
HttpApiEndpoint.get('getStream', '/stream')
.setUrlParams(
Schema.Struct({
message: Schema.String
})
)
.addSuccess(
Schema.String.pipe(
HttpApiSchema.withEncoding({
kind: 'Text',
contentType: 'application/octet-stream'
})
)
)
)
);