(define-page (regexp "/files/[^/]+/[^/]+") (lambda (path) (lambda () (let* ((paths (string-split path "/")) (asset_id (second paths)) (type (third paths))) (send-image "select * from v_images where asset_id = @asset_id and type = @type;" asset_id type) ""))) no-template: #t)