Skip to content

Commit

Permalink
fix(middlewares): update route files exports (named exports by methods)
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Feb 18, 2020
1 parent ff2b456 commit 6a22e67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/routes/ecom/auth-callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const procedures = require('./../../lib/store-api/procedures')
// handle Store API errors
const errorHandling = require('./../../lib/store-api/error-handling')

module.exports = ({ appSdk }, req, res) => {
exports.post = ({ appSdk }, req, res) => {
const { storeId } = req

// handle callback with E-Com Plus app SDK
Expand Down
2 changes: 1 addition & 1 deletion functions/routes/ecom/refresh-tokens.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = ({ appSdk }, req, res) => {
exports.post = ({ appSdk }, req, res) => {
// we don't have to do nothing on this endpoint
// update tokens service will be auto started by `appSdk` on setup:
// https://github.com/ecomplus/application-sdk/blob/master/main.js#L65
Expand Down
2 changes: 1 addition & 1 deletion functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ECHO_SUCCESS = 'SUCCESS'
const ECHO_SKIP = 'SKIP'
const ECHO_API_ERROR = 'STORE_API_ERR'

module.exports = ({ appSdk }, req, res) => {
exports.post = ({ appSdk }, req, res) => {
const { storeId } = req
/*
Treat E-Com Plus trigger body here
Expand Down

0 comments on commit 6a22e67

Please sign in to comment.