Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

horse-staticfiles

Horse StaticFiles Middleware

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

horse-staticfiles

Middleware for StaticFiles in HORSE

Sample Horse Server to serve static files

delphi
uses
  Horse,
  Horse.StaticFiles;

begin
  THorse.Use('/static', HorseStaticFile('.\static', ['index.html']))
  THorse.Listen;
end;