mirror of
https://github.com/woodchen-ink/Edgeone_CleanCache.git
synced 2025-07-17 21:41:57 +08:00
删除清理缓存 API 的实现代码,移除相关的请求处理逻辑。
This commit is contained in:
parent
33f1abd6d8
commit
f2309e973c
@ -90,7 +90,7 @@ async function qcloudV3Post(secretId, secretKey, service, bodyArray, headersArra
|
||||
}
|
||||
|
||||
// 处理 OPTIONS 请求
|
||||
export function onRequestOptions(context) {
|
||||
export function onRequestOptions() {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
@ -151,7 +151,7 @@ export async function onRequestPost(context) {
|
||||
}
|
||||
|
||||
// 处理其他 HTTP 方法
|
||||
export function onRequest(context) {
|
||||
export function onRequest() {
|
||||
return new Response(JSON.stringify({ error: 'Only POST method is allowed' }), {
|
||||
status: 405,
|
||||
headers: {
|
Loading…
x
Reference in New Issue
Block a user