Skip to content

Instantly share code, notes, and snippets.

@Quantumplation
Last active December 29, 2015 16:19
Show Gist options
  • Save Quantumplation/7696685 to your computer and use it in GitHub Desktop.
Save Quantumplation/7696685 to your computer and use it in GitHub Desktop.
(ns Anaximander.core
(:use [compojure.core]
[clojure.java.io]
ring.middleware.cors)
(:require [compojure.handler :as handler]
[compojure.route :as route]
[clojure.data.json :as json]
[clojure.contrib.java-utils :as io]
[clojure.java.io :as jio]))
;; Routes
(defroutes app-routes
(POST "/Anaximander" []
()))
(def app
(-> (handler/site app-routes))
(wrap-cors :access-control-allow-origin #"http://external.site.com"))
(defproject Anaximander "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/clojure-contrib "1.2.0"]
[compojure "1.1.5"]
[ring/ring-json "0.1.2"]
[org.clojure/data.json "0.2.3"]
[ring-cors "0.1.0"]]
:plugins [[lein-ring "0.7.3"]]
:ring {:handler Anaximander.core/app}
:profiles {:dev {:dependencies [[ring-mock "0.1.3"]]}}
:main Anaximander.core)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment