module IHP.SEO.Sitemap.Routes where

import IHP.Prelude
import IHP.RouterPrelude
import IHP.SEO.Sitemap.Types

instance HasPath SitemapController where
    pathTo :: SitemapController -> Text
pathTo SitemapController
SitemapAction = Text
"/sitemap.xml"

instance CanRoute SitemapController where
    parseRoute' :: (?context::RequestContext) => Parser SitemapController
parseRoute' = do
        ByteString -> Parser ByteString
string ByteString
"/sitemap.xml"
        forall t. Chunk t => Parser t ()
endOfInput
        forall (f :: * -> *) a. Applicative f => a -> f a
pure SitemapController
SitemapAction