~bendersteed/wikisophy

22a422d408e5ee738c9a6e67b2792794e61ba492 — Dimakakos Dimos 4 years ago 45c6a61
Add: docstring for handler
1 files changed, 2 insertions(+), 0 deletions(-)

M server.lisp
M server.lisp => server.lisp +2 -0
@@ 1,6 1,8 @@
(in-package wikisophy.server)

(hunchentoot:define-easy-handler (wikisophy :uri "/wikisophy") (query)
  "Given a query return the titles of wikipedia articles until
philosophy in json format."
  (setf (hunchentoot:content-type*) "application/json")
  (cl-json:encode-json-to-string (wikisophy.crawler:path-to-philosophy query)))