Flowise/packages/server/src/controllers/ping/index.ts

14 lines
272 B
TypeScript

import { Request, Response, NextFunction } from 'express'
const getPing = async (req: Request, res: Response, next: NextFunction) => {
try {
return res.status(200).send('pong')
} catch (error) {
next(error)
}
}
export default {
getPing
}