10 lines
330 B
TypeScript
10 lines
330 B
TypeScript
import http from '@/api/http';
|
|
|
|
export default async (uuid: string, file: string, content: string): Promise<void> => {
|
|
await http.post(`/api/client/servers/${uuid}/files/write`, content, {
|
|
params: { file: encodeURI(decodeURI(file)) },
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
});
|
|
};
|