mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
27 lines
703 B
JavaScript
Executable File
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)
|
|
// }
|
|
// })
|
|
// }
|