2024-03-05 10:20:36 +00:00

27 lines
703 B
JavaScript
Executable File

// import { Schematized } from "../../../lib"
// import IndecentPrediction from "../../../utils/indecent-prediction"
// export default {
// method: "GET",
// route: "/indecent_prediction",
// fn: Schematized({
// select: ["url"],
// required: ["url"],
// }, async (req, res) => {
// const { url } = req.selection
// const predictions = await IndecentPrediction({
// url,
// }).catch((err) => {
// res.status(500).json({
// error: err.message,
// })
// return null
// })
// if (predictions) {
// return res.json(predictions)
// }
// })
// }