aboutsummaryrefslogtreecommitdiff
path: root/dynamic/api.scm
diff options
context:
space:
mode:
authorJakob L. Kreuze2022-11-03 20:52:05 -0400
committerJakob L. Kreuze2022-11-15 18:58:03 -0500
commite491e70e513d881ad1e64209f058f9304f046130 (patch)
treeed7210b82a05fdb3eb92382414a0ebd063aa4c97 /dynamic/api.scm
parentb6945c7816d2004405353eff6a32c8781cc531ec (diff)
[dynamic] Initial database stubs
Diffstat (limited to 'dynamic/api.scm')
-rw-r--r--dynamic/api.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/dynamic/api.scm b/dynamic/api.scm
index 6cda81a..8bbff1e 100644
--- a/dynamic/api.scm
+++ b/dynamic/api.scm
@@ -14,7 +14,8 @@
;;; along with this program. If not, see
;;; <http://www.gnu.org/licenses/>.
-(use-modules (dynamic capabilities gallery)
+(use-modules (dynamic capabilities comments)
+ (dynamic capabilities gallery)
(dynamic capabilities rsvp)
(dynamic logging)
(srfi srfi-1)
@@ -38,8 +39,9 @@
(log-append! 'info (format #f "~a ~a (~a) (~a)" method endpoint args originating-ip)))
((match (cons (request-method request) endpoint)
;; ('(GET "challenge") make-challenge)
- ;; ('(GET "comments") get-comments)
- ;; ('(POST "comment") put-comment)
+ ('(GET "comments") get-comments)
+ ('(POST "comment") put-comment)
+ ('(POST "react") put-reaction)
('(GET "gallery") get-gallery)
('(GET "gallery" "image") get-image)
('(GET "rsvp" "event-info") get-event-info)

© 2015 - 2026 Jakob L. Kreuze