This commit is contained in:
parent
9635769792
commit
69c6749e71
11
src/routes/[tag]/[slug]/amp.ts
Normal file
11
src/routes/[tag]/[slug]/amp.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import type { RequestHandler } from "@sveltejs/kit";
|
||||
|
||||
export const GET: RequestHandler = async ({ params }) => {
|
||||
return {
|
||||
status: 301,
|
||||
headers: {
|
||||
"Location": `/${params.tag}/${params.slug}`
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user