import { NextFunction , Response , Request } from 'express' ; import { getPayment } from 'lib/payment/get' ; export function api_getPayment ( req , res , next ) { getPayment ( req . query . jwt ) . then ( payment => res . status ( 200 ) . json ( payment ) ) . catch ( next ) ; }