const express = require("express");
const router = express.Router();
const proxyRouter = require("./proxy");
const uploadImageRouter = require("./uploadImage");

// Health
router.get("/", (req, res) => {
    res.json({ success: true, message: "API is working" });
});

// Proxy — POST /api/proxy
router.use("/proxy", proxyRouter);

// Upload image from URL — POST /api/upload-image
router.use("/upload-image", uploadImageRouter);

module.exports = router;
