Changed design language. Added editions, better support for authors. Base for file handling
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { AuthorSummary, AuthorDetail } from '../types'
|
||||
import { api } from './client'
|
||||
|
||||
export function fetchAuthors(): Promise<AuthorSummary[]> {
|
||||
return api.get<AuthorSummary[]>('/authors')
|
||||
}
|
||||
|
||||
export function fetchAuthor(id: number): Promise<AuthorDetail> {
|
||||
return api.get<AuthorDetail>(`/authors/${id}`)
|
||||
}
|
||||
Reference in New Issue
Block a user