UNPKG
vite-template-mantine
Version:
latest (1.0.1)
1.0.1
1.0.0
Custom Vite React TypeScript template
vite-template-mantine
/
src
/
shared
/
api
/
test-api.ts
10 lines
(7 loc)
•
178 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ api }
from
"./base"
;
class
TestApi
{
async
postTestData
(
value
:
any
) {
return
await
api.
post
(
"test"
, value); } }
export
const
testApi =
new
TestApi
();