Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Routes Defined in file not loaded #47

Open
Captnwalker1 opened this issue Sep 11, 2019 · 2 comments
Open

Function Routes Defined in file not loaded #47

Captnwalker1 opened this issue Sep 11, 2019 · 2 comments

Comments

@Captnwalker1
Copy link

In my working serverless project deployed already to AWS we have our functions defined in seperate yml files. This doesn't seem to work with serverless-offline

functions:
  devices: ${file(resources/functions/devices.yml)}
  load: ${file(resources/functions/load.yml)}
  registration: ${file(resources/functions/registration.yml)}
  getMessages: ${file(resources/functions/getMessages.yml)}
handler: functions/registration.handler
events:
  - http:
      path: /${self:custom.version}/registration
      method: get
      cors: true

I start serverless with sls offline --providedRuntime 11.10.1

I keep getting error

{"statusCode":404,"error":"Serverless-offline: route not found.","currentRoute":"get - /v1/registration","existingRoutes":[]}

Your Environment Information ---------------------------
Operating System: darwin
Node Version: 11.10.1
Framework Version: 1.51.0
Plugin Version: 1.3.10
SDK Version: 2.1.0

@jayair
Copy link
Member

jayair commented Sep 15, 2019

Might be better to post it over there instead?

https://github.com/dherault/serverless-offline

@Captnwalker1
Copy link
Author

Whoops totally missed I wasn't in the project's github, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants