Create /callback route


i am trying to implement messenger4j lybrary for interaction with facebook´s Messenger Bot. Since i am new with cuba and also Java i will be happy for help with this topic.

I need to create open /callback edpoint in cuba app. Something like this

What is correct way of creating this enpoint in cuba-platform?

You may define a Spring MVC controller in web module.

See Spring MVC configuration in A.dispatcher-spring.xml - CUBA Platform. Developer’s Manual

@jreznot thank you. Is there any example i can look at?

@jreznot can you also give me advice how/where should i initialize Messenger as in this exaple?