I'm creating a REST server using XData but without any requirement for a database connection or Aurelius ORM.
I want to use the model option to divide the application up and also want to use the middleware options available.
I'm trying to use TXDataServer (created in code), which is fine for the model (supports modelname) but as TXDataServer has a different ancestry to TXDataServerModule it's middleware is TSparkleMiddleware based and not based on THttpServerMiddleware.
You can use TXDataServer.OnModuleCreate event, which provides you the underlying TXDataServerModule created by the component. There you can add the middleware from code.