import { wrap } from "async-middleware"; import { Router } from "express"; import postSuggestions from "./post/postSuggestions"; import getSuggestions from "./get/getSuggestions"; import setupLogging from "./monitoring"; setupLogging(); const router = Router(); router.get("/", wrap(getSuggestions)); router.post("/", wrap(postSuggestions)); export default router;