Skip to content

Couldn't get Serverless to work properly with "Manage routes from code" #1655

Answered by Romakita
alexdonh asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @alexdonh
I'm sorry, I miss to give a command example to invoke the lambda with a router :/

Add this task on your package.json:

"scripts": {
    "invoke:any": "serverless invoke local -f any --data '{\"path\":\"/timeslots\", \"httpMethod\": \"GET\"}'"
}

See you

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Romakita
Comment options

@Romakita
Comment options

@alexdonh
Comment options

@Romakita
Comment options

@alexdonh
Comment options

Answer selected by alexdonh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants