All request go to vaadin 12

Hey,

How can I prevent Vaadin 12 from consuming all the request? I want to implement a rest controller in the bakkery demo app but every request will be redirected to the login.

Best regards,

RG

You need to implement the REST controller as its own servlet and deploy it to different context than your Vaadin application.

Hey Tatu,

Thanks for the reply. How can I deploy it to a different context?

Best regards,

RG

@RestController annotation could work too, but you will probably need to add an override in SecurityConfiguration to allow access to your service (preferrably, security controlled access)

Yes thanks Olli!

I changed the security configuration and got it working!

Thanks!