aboutsummaryrefslogtreecommitdiff
path: root/src/app/api.clj
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2015-12-31 08:25:18 -0600
committerDavid Barksdale <amatus@amatus.name>2015-12-31 08:25:18 -0600
commit7c966d1f14da7276e7629cad0ac218645328006d (patch)
tree277c72f2defd7ea3a1d6e229b9c7dfa119a9d636 /src/app/api.clj
parent1a9bc49d42cb592f3fb41fae8c6af9b1fe983c41 (diff)
Add hints
Diffstat (limited to 'src/app/api.clj')
-rw-r--r--src/app/api.clj5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/api.clj b/src/app/api.clj
index 432482c..d453f4b 100644
--- a/src/app/api.clj
+++ b/src/app/api.clj
@@ -29,3 +29,8 @@
{:rpc/pre (= token (db/get :admin))}
(binding [*ns* (find-ns 'simpledb.core)]
(eval (read-string expr))))
+
+(defrpc get-hints []
+ (if (db/get :drop-hints)
+ (db/get :hints)
+ "Hack Harder!"))