enhance: file upload and filter
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// const BASE_URL = `${location.origin}/api`;
|
||||
const BASE_URL = `https://dev.rustchat.com/api`;
|
||||
export const CACHE_VERSION = `0.3`;
|
||||
export const CACHE_VERSION = `0.3.1`;
|
||||
// const BASE_URL = `https://rustchat.net/api`;
|
||||
export const ContentTypes = {
|
||||
text: "text/plain",
|
||||
|
||||
@@ -39,9 +39,10 @@ export const messageApi = createApi({
|
||||
}),
|
||||
}),
|
||||
prepareUploadFile: builder.mutation({
|
||||
query: () => ({
|
||||
query: (meta = {}) => ({
|
||||
url: `/resource/file/prepare`,
|
||||
method: "POST",
|
||||
body: meta,
|
||||
}),
|
||||
}),
|
||||
uploadFile: builder.mutation({
|
||||
|
||||
Reference in New Issue
Block a user