UNPKG

@medusajs/medusa

Version:

Building blocks for digital commerce

15 lines 560 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GET = void 0; const http_1 = require("@medusajs/framework/http"); const GET = async (req, res) => { const { rows: notifications, metadata } = await (0, http_1.refetchEntities)("notification", req.filterableFields, req.scope, req.queryConfig.fields, req.queryConfig.pagination); res.json({ notifications, count: metadata.count, offset: metadata.skip, limit: metadata.take, }); }; exports.GET = GET; //# sourceMappingURL=route.js.map