Static assets in play framework not working

I am using play framework, macwire and unable to handle static assets.
In my routes file I have
GET /assets/*file = “/public”, file)
and have the appropriate html files in the public directory,
Do I need to wire these routes somehow ?

It works with java version 17.0.16 and not with the new version 19.02