Last active
December 29, 2015 16:19
Revisions
-
Quantumplation revised this gist
Nov 28, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,4 +15,4 @@ (def app (-> (handler/site app-routes)) (wrap-cors :access-control-allow-origin #"http://external.site.com")) -
Quantumplation created this gist
Nov 28, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ (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://triton.ironhelmet.com")) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ (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)