@vtex/faststore-plugin-buyer-portal 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/faststore-plugin-buyer-portal",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "A plugin for faststore with buyer portal",
5
5
  "main": "index.js",
6
6
  "dependencies": {},
package/plugin.config.js CHANGED
@@ -32,6 +32,11 @@ module.exports = {
32
32
  profile: {
33
33
  path: "/profile",
34
34
  appLayout: false,
35
- }
35
+ },
36
+ },
37
+ apis: {
38
+ "new-route": {
39
+ path: "/new-route",
40
+ },
36
41
  },
37
42
  };
@@ -0,0 +1,7 @@
1
+ import { NextApiRequest, NextApiResponse } from "next/types";
2
+
3
+ // TODO: Remove when Plugin API feature be merged
4
+ export default function handle(req: NextApiRequest, res: NextApiResponse) {
5
+ console.log(req);
6
+ return res.json({ hello: "from plugin" });
7
+ }