[ 
https://issues.apache.org/jira/browse/CAMEL-21110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17875817#comment-17875817
 ] 

Claus Ibsen commented on CAMEL-21110:
-------------------------------------

We can have options to configure the serving http 

- camel.server.serving-enabled = true
- camel.server.serving-path = web
- camel.server.serving-allow = *.html,xxxx (to filter what files is allowed)
- camel.server.serving-deny = zzzz

Then the http url will be localhost:8080/web/*

It may be root as default, but mind we have /q/info /q/dev and so on for other 
parts.

And if there is an index.* file then that is serviced by default. Otherwise it 
matches by file name.
And should not be cached so you can update files.



> camel-jbang - Make it easy to service HTML/JS pages
> ---------------------------------------------------
>
>                 Key: CAMEL-21110
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21110
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.8.0
>
>
> Lets make it easy to have some camel routes and html/js/png files so you can 
> have a web front page and let Camel automatic service this via its embedded 
> http server (platform-http).
> And then when export to Q/SB then these files should be in src/main/resources 
> (and whatever folder they may have for html stuff).
> And the files should not be cached so you can update and reload the webpage 
> for updates.
> This makes it easier to build prototypes with camel and web apps.
> Its just for serving those files, not for a template library like thymaleaf 
> or qute etc.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to