You are not logged in.
Pages: 1
Hi Arnaud, you modified TMvcRunOnRestServer.InternalRunOnRestServer
and now my Methodname '.static/js/chunk-vendors.51b2b211.js'
does not work any more depending on:
p := pointer(MethodName);
if GetNextItemMultiple(p, '/?', rawMethodName) = '/' then
GetNextItemMultiple(p, '/?', rawFormat);
Get error 404 - File not found. Mormot is not looking for "js/chunk-vendors.51b2b211.js" it looks for "js"
I have subfolder's in the .static folder !
in V2.0.4496 the Methodname works as expected with:
Split(MethodName, '/', rawMethodName, rawFormat);
As Workaround i removed the new code an replaced it with the old one.
Rad Studio 12.1 Santorini
Offline
mORMot newbie here, just started exploring the code base. I ran into this yesterday and thought it was intended behaviour. Ended up writing a simple method-based service to serve static content that runs together with the MVC app.
Offline
Using Split() as you did would not work with URI encoded parameters like ?a=xxx&b=yyy
Please try https://github.com/synopse/mORMot2/commit/e52dca77
Offline
Thank you. Tested ok.
Offline
yes works
Rad Studio 12.1 Santorini
Offline
Pages: 1