#How do we export frontend and backend APIs from Wix Cli App ??

10 messages · Page 1 of 1 (latest)

austere dagger
#

I have mostly been building Blocks apps, now am building my first Wix Cli App, how do we export frontend and backend apis from the cli apps?? I dont see any documentation...

modern lion
#
austere dagger
#

@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()
}
modern lion
modern lion
austere dagger
#

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 🙏

modern lion
# austere dagger <@801225202092474379> - 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 🙂

austere dagger
#

@modern lion - thanks.. I think I would explore launching an npm package that will go along with my wix cli app

modern lion