I'm not an expert on fpweb at all but am still working on a RESTful server.
I've got
Application.AllowDefaultModule:=false; //all URLs must include the module name (image, document..)
{ If there is only 1 element in the URL, like the "something" in
http://localhost/cgi-bin/something
treat it as a module by setting PreferModuleName.
Otherwise it would have been treated like an action.
}
Application.PreferModuleName:=true;
and then use various modules like this
initialization
// This registration will handle http://server/cgi-bin/tigercgi/image/*
RegisterHTTPModule('image', TFPWebimage);
end.
and
initialization
// This registration will handle http://server/cgi-bin/tigercgi/document/*
RegisterHTTPModule('document', TFPWebdocument);
end.
I basically do everything in code in those modules
See the tigercgi.lpr project in my papertiger project (repository via link below)