File: Handlers.hs

package info (click to toggle)
haskell-yesod-default 1.0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 76 kB
  • sloc: haskell: 335; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE OverloadedStrings #-}
module Yesod.Default.Handlers
    ( getFaviconR
    , getRobotsR
    ) where

import Yesod.Handler (GHandler, sendFile)
import Yesod.Content (RepPlain(..))

getFaviconR :: GHandler s m ()
getFaviconR = sendFile "image/x-icon" "config/favicon.ico"

getRobotsR :: GHandler s m RepPlain
getRobotsR = sendFile "text/plain" "config/robots.txt"