forked from polka_billy/porridger
20 lines
379 B
TypeScript
20 lines
379 B
TypeScript
import { API_URL } from '../../config'
|
|
import { PoetryResponse, Poetry } from './types'
|
|
|
|
const initialPoetry: Poetry = {
|
|
title: '',
|
|
text: '',
|
|
author: '',
|
|
id: 0,
|
|
}
|
|
|
|
const composePoetryURL = () => (
|
|
API_URL + '/user/poem?'
|
|
)
|
|
|
|
const processPoetry = (data: PoetryResponse): Poetry => {
|
|
return data
|
|
}
|
|
|
|
export { initialPoetry, composePoetryURL, processPoetry }
|