Daniele Teti 2022-12-06 16:09:16 +01:00
parent 4c7e4861d2
commit 85d288c83a
2 changed files with 0 additions and 6 deletions

View File

@ -1,5 +1,4 @@
object MyWebModule: TMyWebModule
OldCreateOrder = False
OnCreate = WebModuleCreate
OnDestroy = WebModuleDestroy
Actions = <>

View File

@ -57,11 +57,6 @@ begin
end);
FMVC.AddController(TMyController);
// To enable compression (deflate, gzip) just add this middleware as the last one
FMVC.AddMiddleware(TMVCStaticFilesMiddleware.Create(
'/', { StaticFilesPath }
TPath.Combine(ExtractFilePath(GetModuleName(HInstance)), 'www'), { DocumentRoot }
'index.html' {IndexDocument - Before it was named fallbackresource}
));
FMVC.AddMiddleware(TMVCCompressionMiddleware.Create);
end;