-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
holybaechu
committed
Feb 23, 2024
1 parent
2a19739
commit e4aa213
Showing
18 changed files
with
154 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
const selfURL = "https://boost.rappy.tv"; | ||
|
||
const pages = [ | ||
{ | ||
loc: "/", | ||
lastmod: "2024-02-23", | ||
changefreq: "daily", | ||
priority: 1 | ||
}, | ||
{ | ||
loc: "/invite", | ||
lastmod: "2024-02-23", | ||
changefreq: "monthly", | ||
priority: 0.9 | ||
}, | ||
{ | ||
loc: "/vote", | ||
lastmod: "2024-02-23", | ||
changefreq: "monthly", | ||
priority: 0.8 | ||
}, | ||
{ | ||
loc: "/review", | ||
lastmod: "2024-02-23", | ||
changefreq: "monthly", | ||
priority: 0.8 | ||
}, | ||
{ | ||
loc: "/support", | ||
lastmod: "2024-02-23", | ||
changefreq: "monthly", | ||
priority: 0.7 | ||
}, | ||
{ | ||
loc: "/feedback", | ||
lastmod: "2024-02-23", | ||
changefreq: "monthly", | ||
priority: 0.7 | ||
}, | ||
{ | ||
loc: "/status", | ||
lastmod: "2024-02-23", | ||
changefreq: "monthly", | ||
priority: 0.6 | ||
}, | ||
{ | ||
loc: "/docs/privacy", | ||
lastmod: "2024-02-23", | ||
changefreq: "weekly", | ||
priority: 0.4 | ||
}, | ||
{ | ||
loc: "/docs/terms", | ||
lastmod: "2024-02-23", | ||
changefreq: "weekly", | ||
priority: 0.4 | ||
}, | ||
] | ||
|
||
export async function GET() { | ||
return new Response( | ||
` | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<urlset | ||
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9" | ||
xmlns:xhtml="https://www.w3.org/1999/xhtml" | ||
xmlns:mobile="https://www.google.com/schemas/sitemap-mobile/1.0" | ||
xmlns:news="https://www.google.com/schemas/sitemap-news/0.9" | ||
xmlns:image="https://www.google.com/schemas/sitemap-image/1.1" | ||
xmlns:video="https://www.google.com/schemas/sitemap-video/1.1" | ||
> | ||
${pages | ||
.map( | ||
(page) => ` | ||
<url> | ||
<loc>${selfURL}${page.loc}</loc> | ||
<changefreq>${page.changefreq}</changefreq> | ||
<priority>${page.priority}</priority> | ||
<lastmod>${page.lastmod}</lastmod> | ||
</url> | ||
`, | ||
).join('')} | ||
</urlset>`.trim(), | ||
{ | ||
headers: { | ||
'Content-Type': 'application/xml' | ||
} | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters