~bendersteed/wikisophy

1b2b1b44453d08ec48cd0aa75dabe16012536b71 — bendersteed 4 years ago 2181b99
Add: CORS headers for developing
1 files changed, 3 insertions(+), 0 deletions(-)

M server.lisp
M server.lisp => server.lisp +3 -0
@@ 4,7 4,10 @@
  "Given a query return the titles of wikipedia articles until
philosophy in json format."
  (setf (hunchentoot:content-type*) "application/json")
  (setf (hunchentoot:header-out "Access-Control-Allow-Origin") "*")
  (cl-json:encode-json-to-string (wikisophy.crawler:path-to-philosophy query)))



(defvar *server* (make-instance 'hunchentoot:easy-acceptor :port 4242))
(hunchentoot:start *server*)