Karolis Stulgys
06/10/2022, 11:39 AM/api
prefix for all of my endpoints? I know there is a way, don't remember howArpad
06/10/2022, 11:57 AMnew Api(stack, "Api", {
customDomain: {
domainName: "<http://api.domain.com|api.domain.com>",
hostedZone: "<http://domain.com|domain.com>",
path: "v1",
},
routes: {
"GET /notes": "src/list.main",
},
});
https://docs.serverless-stack.com/constructs/Api#using-the-full-configFrank
routes: {
"GET /api/notes": "src/list.main",
"GET /api/notes/{id}": "src/get.main",
},
Klaus
06/10/2022, 1:51 PM/api/
path into the same domain as the UI