mirror of
https://github.com/graphql-hive/console
synced 2026-05-14 20:58:49 +00:00
18 lines
380 B
TypeScript
18 lines
380 B
TypeScript
import * as utils from 'dockest/test-helper';
|
|
import axios from 'axios';
|
|
|
|
const emailsAddress = utils.getServiceAddress('emails', 3011);
|
|
|
|
export interface Email {
|
|
to: string;
|
|
subject: string;
|
|
body: string;
|
|
}
|
|
|
|
export async function history() {
|
|
const res = await axios.get<Email[]>(`http://${emailsAddress}/_history`, {
|
|
responseType: 'json',
|
|
});
|
|
|
|
return res.data;
|
|
}
|