mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-21 01:24:46 +07:00
added api fn to request git stats
This commit is contained in:
parent
29c3b8a26f
commit
2027ec65af
4 changed files with 18 additions and 2 deletions
src/redux/boris
8
src/redux/boris/api.ts
Normal file
8
src/redux/boris/api.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Axios from 'axios';
|
||||
import { API } from '~/constants/api';
|
||||
import { resultMiddleware, errorMiddleware } from '~/utils/api';
|
||||
|
||||
export const getBorisGitStats = (): Promise<any> =>
|
||||
Axios.get(API.BORIS.GET_GIT_LOG)
|
||||
.then(resultMiddleware)
|
||||
.catch(errorMiddleware);
|
Loading…
Add table
Add a link
Reference in a new issue