forked from polka_billy/porridger
Added users rating in announcement details
This commit is contained in:
12
front/src/api/sendRate/index.ts
Normal file
12
front/src/api/sendRate/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { API_URL } from '../../config'
|
||||
import { SendRateResponse, SendRate } from './types'
|
||||
|
||||
const composeSendRateURL = () => (
|
||||
API_URL + '/user/rating?'
|
||||
)
|
||||
|
||||
const processSendRate = (data: SendRateResponse): SendRate => {
|
||||
return data.Success
|
||||
}
|
||||
|
||||
export { composeSendRateURL, processSendRate }
|
Reference in New Issue
Block a user