marc
WWasp-lang
•Created by marc on 5/6/2024 in #🙋questions
How does one go about creating their own server-side API endpoint to interact with in the frontend?
wasp version 0.13.2
Platform: MacOS
Hey! Quick question, is there documentation lying around somewhere regarding a guide to creating your own API endpoint in order to interact with it in the frontend without messing with authorizations and backend logic?
For context, I modified the OpenSaaS GenerateGPTResponse function in the server/actions.ts boilerplate to fit my custom application needs (for the app I'm trying to build). Problem is, I dont know how to proceed to call this function from the client/DemoAppPage.tsx file. I'm sure there are other server-side files that need changing, but is there a checklist of things to modify I could refer to by chance? Or else, if there is maybe a useful video/tutorial I'd be happy to try and figure it out for myself.
Thanks in advance!!
PS: not a web dev originally! Very unfamiliar with Typescript and there might be something obvious I'm missing out on 🙂
9 replies