Skip to content

Commit

Permalink
i18n(ru): fix typo in the code sample 4.mdx (withastro#8255)
Browse files Browse the repository at this point in the history
A typo in the get code example - because of this I get the error "No API Route handler exists for the method "GET" for the route "/rss.xml". Found handlers: "Get" When building xml is not created. When editing from get to GET everything works.

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
  • Loading branch information
2 people authored and wpplumber committed May 15, 2024
1 parent 847c0eb commit 2e047e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/ru/tutorial/5-astro-api/4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Astro предоставляет специальный пакет для быс

import rss, { pagesGlobToRssItems } from '@astrojs/rss';

export async function get() {
export async function GET() {
return rss({
title: 'Ученик Astro | Блог',
description: 'Мое путешествие по изучению Astro',
Expand Down

0 comments on commit 2e047e8

Please sign in to comment.