Skip to content

Commit

Permalink
Added a static file dispatcher for robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomo Matsumoto authored and Tomo Matsumoto committed Aug 6, 2009
1 parent c76301e commit 2f7001a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
("/js/" . ,(merge-pathnames "js/" *public-dir*))))
(push (create-folder-dispatcher-and-handler (car x) (cdr x)) *dispatch-table*))

(push (create-static-file-dispatcher-and-handler
"/robots.txt" (merge-pathnames "robots.txt" *public-dir*))
*dispatch-table*)

; default page
(setf *default-handler*
#'(lambda ()
Expand Down

0 comments on commit 2f7001a

Please sign in to comment.