#How do we export frontend and backend APIs from Wix Cli App ??
10 messages · Page 1 of 1 (latest)
@austere dagger are you referring too these features - https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/widget-api/blocks-widget-functions
https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/code-in-blocks/expose-a-blocks-app-api-with-http-functions
Just trying to understand what exactly you mean 🙂
Editor compatibility Wix Blocks apps aren't supported in the Wix Harmony editor. Existing Blocks apps remain available for purchase on the Wix App Market for Wix Editor and Wix Studio sites. To learn more, see About Wix Harmony and Blocks.
Editor compatibility Wix Blocks apps aren't supported in the Wix Harmony editor. Existing Blocks apps remain available for purchase on the Wix App Market for Wix Editor and Wix Studio sites. To learn more, see About Wix Harmony and Blocks.
@modern lion - thank you for your quick response
I am not referring to Blocks apps, I am referring to Cli Apps
I want to be able to expose code api from my app so I can import it in the site where I installed it
import { foo } from '@namespace/app-name'
$.onReady(() => {
foo()
}
I understand, just wanted to make sure i knew exactly what blocks feature you mean to see if CLI shares the same feature 🙂
Current, exposing widget API isn't a feature for CLI.
This is actually something that has been requested my numerous people. Hopefully this team will pick this up and add your request for this feature 🙂
oh noooooo!!!! 😭
I came to CLI with high hopes as Wix claims to be using this for their own apps but guess that's just marketing stunt...
@modern lion - thank you for quick response 🙏
@austere dagger Anytime, AFAIK CLI doesn't have endpoints in the way of a site calling the end point ( exposing app api with http functions ) just incase you were wondering that too.
I also don't see any 'hints' of widget api coming any time soon either so hopfully it can be developed very soon 🙂
@modern lion - thanks.. I think I would explore launching an npm package that will go along with my wix cli app
@austere dagger Sounds like a plan!