import { Router } from "express";
import { requireAuth } from "../../middleware/auth.js";
import { asyncHandler } from "../../middleware/errorHandler.js";
import * as controller from "./controller.js";

export const syncRouter = Router();

syncRouter.get("/", requireAuth, asyncHandler(controller.pull));
syncRouter.post("/", requireAuth, asyncHandler(controller.push));
