12 lines
321 B
JavaScript
12 lines
321 B
JavaScript
const router = require("express").Router()
|
|
const handleClimateUpdate = require("../models/handleClimateUpdate.js")
|
|
|
|
module.exports = dbConn => {
|
|
router.put("/api/v1/climate/update", async (req, res) => {
|
|
const update = await handleClimateUpdate(dbConn)
|
|
res.json(update)
|
|
});
|
|
|
|
return router;
|
|
};
|