Skip to content

Commit

Permalink
Rename api-gateway folder to http
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 23, 2019
1 parent df22f45 commit 4591e02
Show file tree
Hide file tree
Showing 29 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion __tests__/old-unit/LambdaProxyIntegrationEventTest.js
@@ -1,5 +1,5 @@
import RequestBuilder from './support/RequestBuilder.js'
import LambdaProxyIntegrationEvent from '../../src/events/api-gateway/lambda-events/LambdaProxyIntegrationEvent.js'
import LambdaProxyIntegrationEvent from '../../src/events/http/lambda-events/LambdaProxyIntegrationEvent.js'

const { isArray } = Array
const { keys } = Object
Expand Down
2 changes: 1 addition & 1 deletion __tests__/old-unit/authCanExecuteResourceTest.js
@@ -1,4 +1,4 @@
import authCanExecuteResource from '../../src/events/api-gateway/authCanExecuteResource.js'
import authCanExecuteResource from '../../src/events/http/authCanExecuteResource.js'

describe('authCanExecuteResource', () => {
describe('when the policy has one Statement in an array', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/old-unit/authFunctionNameExtractorTest.js
@@ -1,4 +1,4 @@
import authFunctionNameExtractor from '../../src/events/api-gateway/authFunctionNameExtractor.js'
import authFunctionNameExtractor from '../../src/events/http/authFunctionNameExtractor.js'

describe('authFunctionNameExtractor', () => {
const dummyLogging = (arrayStore) => (message) => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/old-unit/authMatchPolicyResourceTest.js
@@ -1,4 +1,4 @@
import authMatchPolicyResource from '../../src/events/api-gateway/authMatchPolicyResource.js'
import authMatchPolicyResource from '../../src/events/http/authMatchPolicyResource.js'

describe('authMatchPolicyResource', () => {
describe('when resource has no wildcards', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/old-unit/velocityContextTest.js
@@ -1,4 +1,4 @@
import VelocityContext from '../../src/events/api-gateway/lambda-events/VelocityContext.js'
import VelocityContext from '../../src/events/http/lambda-events/VelocityContext.js'

describe('#urlDecode', () => {
test('should decode url query parameters', () => {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -63,7 +63,7 @@ export default [
rollupPluginCopy({
targets: [
{
src: 'src/events/api-gateway/templates/*.vm',
src: 'src/events/http/templates/*.vm',
dest: 'dist/templates',
},
{ src: 'src/lambda/handler-runner/*.{py,rb}', dest: 'dist' },
Expand Down
4 changes: 1 addition & 3 deletions src/ServerlessOffline.js
Expand Up @@ -125,9 +125,7 @@ export default class ServerlessOffline {
}

async _createApiGateway() {
const { default: ApiGateway } = await import(
'./events/api-gateway/index.js'
)
const { default: ApiGateway } = await import('./events/http/index.js')

this._apiGateway = new ApiGateway(
this._service,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4591e02

Please sign in to comment.