Je suis nouveau sur vertx-web. Je construis une application web en utilisant ruby vertx-web. Je voudrais servir le fichier statique (index.html). et Mon index.html emballé dans le dossier webroot. Mon fichier index.html va charger pour http://localhost:8088. J'ai besoin de servir index.html pour localhost: 8088/demo OU localhost: 8088/test OU http://localhost:8088/ * (* pourrait être n'importe quoi et devrait servir index.html).Vertx web Routing
structure de répertoire:
frontend
Webroot
- index.html
- index.css
sever.rb
Toute aide sera appréciée.
Salut niraj, router.route_with_regex (". */Index.html"). Handler() {| ctx | réponse = ctx.response() response.put_header ("type de contenu", "text/html") response.set_chunked (true) response.send_file ("Webroot/index.html") } et il charge index.html mais il ne chargera pas les fichiers css et js ceux contenus dans index.html –