Newbie here. Not much experience with JS/Netlify/Web development. I’m creating a netlify function and would like to use part of the url as in. Example:
Is it possible to have such a function where ‘employee_code’ is take as a parameter/argument for the ‘myfunction’ function? I know Query String Parameters is one way, but wondering if the path can be used too? Any example would be greatly appreciated.
There’s no built-in way. You’d have to setup a middleware using Express.js or something similar. If that’s not acceptable, query parameters is the only way to go.