mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-10-25 01:39:08 +00:00
feat: added redux & ducks
This commit is contained in:
5
client/src/features/servers/duck/api.ts
Normal file
5
client/src/features/servers/duck/api.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { AxiosResponse } from 'axios';
|
||||
import { api } from '../../../api/api';
|
||||
import type { ServerDTO } from './dto';
|
||||
|
||||
export const getServers = () => api.get<never, AxiosResponse<ServerDTO[]>>('/servers');
|
||||
Reference in New Issue
Block a user