You are not logged in.
Pages: 1
how to include tsqlrest in thttpapiserver, so in 1 server can handle both http server static/dynamic file and restserver ?
Offline
The easiest is IMHO to define a method-based service, then let the method return the file using Ctxt.ReturnFile().
This will also set the MIME type from the filename as expected, and handle HTML_NOTMODIFIED = 304 process, if needed.
I've also added Project04ServerStatic.dpr sample, able to serve some static content by overriding TSQLHttpServer.Request() method.
This is more complicated, but also a possible solution.
Offline
how to call project4static - restdb in browser?
localhost:8080/root/samplerecord/
or
localhost:8080/static/samplerecord/
result not found ?
Offline
Pages: 1