#1 2019-01-10 07:05:39

wangchong
Member
Registered: 2011-08-15
Posts: 42

mormot httpapiserver not suppport fontawesome?

Momort does not support such this
path  http://localhost:888/root/assets/the font - awesome / 4.5.0 / fonts/fontawesome - webfont. Woff?V = 4.5.0

Offline

#2 2019-01-10 16:11:27

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: mormot httpapiserver not suppport fontawesome?

?
This is a static resource, right?

If the URI is properly encoded on the client side, then decoded on the server side using a method-based service, there is no reason why it shouldn't work.

Offline

#3 2019-01-11 00:47:03

wangchong
Member
Registered: 2011-08-15
Posts: 42

Re: mormot httpapiserver not suppport fontawesome?

this is  mORMot  sample 09  result :  http://easystda.com:888/root/index.html
this is IIS result :  http://easystda.com/

Last edited by wangchong (2019-01-11 00:53:26)

Offline

#4 2019-01-11 05:55:38

Chaa
Member
Registered: 2011-03-26
Posts: 249

Re: mormot httpapiserver not suppport fontawesome?

Browser requests file "...webfont.woff?v=4.5.0", but your implementation cannot process "?v=4.5.0" at the end of file.
If I remove "?v=4.5.0" from URL manually, then file returned OK.

Do you use TSQLRestServerURIContext.ReturnFileFromFolder or other function?

Offline

#5 2019-01-11 06:13:35

wangchong
Member
Registered: 2011-08-15
Posts: 42

Re: mormot httpapiserver not suppport fontawesome?

@Chaa
I only used sample 09 as an example:
static html is bootstrap  template

Last edited by wangchong (2019-01-11 06:14:18)

Offline

#6 2019-01-11 06:44:44

Chaa
Member
Registered: 2011-03-26
Posts: 249

Re: mormot httpapiserver not suppport fontawesome?

Sample "09 - HttpApi web server" does not handle "?" in URL.

You may do it yourself or use more feature-rich http server like sample "30 - MVC Server" or Memcached Boilerplate HTTP Server for Synopse mORMot Framework.

Offline

Board footer

Powered by FluxBB