Is it possible to add a custom callback for when a endpoint does not exist? Currently it only returns "Not Found" and I wish to add more logic to this.
EDIT:
THorse.All('*',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
begin
Res.Send('Custom Not Found');
end);
This only works if a path is provided such as: http://localhost:8080/test/ but when it's just http://localhost:8080/ then it no longer works.
Is it possible to add a custom callback for when a endpoint does not exist? Currently it only returns "Not Found" and I wish to add more logic to this.
EDIT:
This only works if a path is provided such as:
http://localhost:8080/test/but when it's justhttp://localhost:8080/then it no longer works.