feat: 完成用户鉴权相关api
This commit is contained in:
1 parent
79cc9c34d6
commit
4c69f57aaa
22 files changed
+903
-68
No files matched your search
@@ -0,0 +1,27 @@
|
||||
|
||||
export const uploadPost = (body: {
|
||||
title: string,
|
||||
summary: string,
|
||||
type: string,
|
||||
tags: string[],
|
||||
url: string,
|
||||
date: number,
|
||||
content: string
|
||||
}) => $fetch('/api/posts/uploadPost', {
|
||||
method: 'POST',
|
||||
body
|
||||
})
|
||||
|
||||
export const updatePost = (body: {
|
||||
id: number,
|
||||
title: string,
|
||||
summary: string,
|
||||
type: string,
|
||||
tags: string[],
|
||||
url: string,
|
||||
date: number,
|
||||
content: string
|
||||
}) => $fetch('/api/posts/uploadPost', {
|
||||
method: 'POST',
|
||||
body
|
||||
})
|
||||
Reference in new issue
Block a user