hello.js 346 Bytes
Newer Older
Sachin Kodagoda's avatar
Sachin Kodagoda committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import * as tf from "@tensorflow/tfjs-node";

export default async (req, res) => {
  try {

    res.status(200).json({
      success: true,
      type: "success",
      message: "successfully added",
    });
  } catch (error) {
    res.status(400).json({
      success: false,
      type: "error",
      message: "internal error",
    });
  }
};