Greatly improve the frontent for history etc.
This commit is contained in:
@@ -55,6 +55,13 @@ export default class PerudoApi {
|
||||
});
|
||||
}
|
||||
|
||||
public callBluff(playerId: string): Promise<MyTurnObject> {
|
||||
return this.post<MyTurnObject>('player/call/' + playerId)
|
||||
.then((response: AxiosResponse<MyTurnObject>) => {
|
||||
return response.data;
|
||||
});
|
||||
}
|
||||
|
||||
private get<T extends ApiObject>(url: string, getParameters?: Record<string, any>): AxiosPromise<T> {
|
||||
return axios.get(PerudoApi.baseUrl + url).then((response: AxiosResponse<T>) => {
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user