1 ;;; file-server.el --- serve any files using Emacs Web Server
3 ;; Copyright (C) 2013 Eric Schulte <schulte.eric@gmail.com>
5 ;; Author: Eric Schulte <schulte.eric@gmail.com>
7 ;; License: GPLV3 (see the COPYING file in this directory)
11 ;; This example uses absolute paths and will try to serve files from
12 ;; the root of the file-system, so don't run it on a public server.
15 (require 'emacs-web-server)
19 (lambda (proc request) (ews-send-file proc (cdr (assoc :GET request))))))