Migrated to CommonJS

This commit is contained in:
2020-10-08 11:12:56 +02:00
parent 871919c838
commit 10a7680d90
16 changed files with 189 additions and 129 deletions

View File

@@ -1,5 +1,5 @@
import express from "express";
import { handleError } from "../services/services.js";
const express = require("express");
const { handleError } = require("../services/services.js");
var router = express.Router();
@@ -11,4 +11,4 @@ router.post("/", async (req, res) => {
}
});
export default router;
module.exports = router;