mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
fix delete latest
This commit is contained in:
@@ -28,7 +28,7 @@ export async function getLatest(): Promise<ILatest[]> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function removeLatest(item: { id: string }) {
|
export async function removeLatest(item: { id: string }) {
|
||||||
const response = await fetch(`/api/pdf/latest/${item.id}`, { method: 'DELETE' })
|
const response = await fetch(`/api/pdf/${item.id}`, { method: 'DELETE' })
|
||||||
checkStatus(response)
|
checkStatus(response)
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user