summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logikorr/servlet.clj4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logikorr/servlet.clj b/src/logikorr/servlet.clj
index 31b6ef7..ae83845 100644
--- a/src/logikorr/servlet.clj
+++ b/src/logikorr/servlet.clj
@@ -93,6 +93,7 @@
[:div#mail-sent-label {:style "display: inline; color: #070"}]]
[:table#ergebnisse]
[:h2 "Bestehende Ergebnisse"]
+ [:a {:href "/logik.txt"} "(Als Text anzeigen.)"]
[:table
[:tr
[:th "ID"] [:th "Punkte"] [:th "Nachname"] [:th "Vorname"]]
@@ -240,6 +241,9 @@ Logikorr")))
(GET "/update-student-score" (with-authentication (update-student-score (:id params) (:score-number params) (:score params))))
(GET "/make-new-revision" (with-authentication (make-new-revision)))
(GET "/send-mail" (with-authentication (send-mail)))
+ (GET "/logik.txt" [{:headers {"Content-Type" "text/plain"}}
+ (with-authentication
+ (encode-database-file))])
(POST "/import-score-file" (with-authentication
(import-score-file (:file-data params))
(redirect-to "/")))