Split out api-servlets.
This commit is contained in:
parent
c86bdc383f
commit
960edc13e7
3 changed files with 53 additions and 5 deletions
|
@ -32,7 +32,8 @@
|
|||
intarweb
|
||||
uri-common
|
||||
(chicken string)
|
||||
postgresql)
|
||||
postgresql
|
||||
api-servlets)
|
||||
|
||||
(define -port- (make-parameter #f))
|
||||
(define -certificate- (make-parameter #f))
|
||||
|
@ -112,8 +113,7 @@
|
|||
(define plst (cdr (uri-path (request-uri (current-request)))))
|
||||
(cond ((and (not (null? plst))
|
||||
(equal? (car plst) "api"))
|
||||
(send-response #:body "API call")
|
||||
#t)
|
||||
(api-dispatch (cdr plst)))
|
||||
(else
|
||||
#f)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue