forked from polka_billy/porridger
Moved useBook to useSend API
This commit is contained in:
12
front/src/api/book/index.ts
Normal file
12
front/src/api/book/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { API_URL } from '../../config'
|
||||
import { Book, BookResponse } from './types'
|
||||
|
||||
const composeBookURL = () => (
|
||||
API_URL + '/book?'
|
||||
)
|
||||
|
||||
const processBook = (data: BookResponse): Book => {
|
||||
return data.Success
|
||||
}
|
||||
|
||||
export { composeBookURL, processBook }
|
Reference in New Issue
Block a user