Initial commit
This commit is contained in:
commit
db896255d6
744 changed files with 56028 additions and 0 deletions
11
web/models/history.ts
Normal file
11
web/models/history.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export type History = {
|
||||
id: string
|
||||
source: string
|
||||
target: string
|
||||
}
|
||||
export type HistoryResponse = {
|
||||
histories: History[]
|
||||
}
|
||||
|
||||
export const fetchHistories = (url: string) =>
|
||||
fetch(url).then<HistoryResponse>(r => r.json())
|
||||
Loading…
Add table
Add a link
Reference in a new issue