#51 2016-03-22 16:36:47

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

Re: MVC/MVVM Web Applications with mORMot!

Sorry, my question wasn't very clear. I've got a server which is basically defined like this:

type
  TMyServer = class(TSQLRestServerDB)
  published
    procedure service_1(cTxt: TSQLRestServerURIContext);
    procedure service_2(cTxt: TSQLRestServerURIContext);
    ...
  end;

This is implemented with method-based services. Is there a way to use mORMotMVC.pas without rewriting the services to use interfaces?

Offline

#52 2016-03-22 19:48:57

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: MVC/MVVM Web Applications with mORMot!

The controller of mORMot MVC could call whatever Delphi class you need, including those.
But there is no direct handling of parameters, as expected by TSQLRestServerURIContext.

Offline

#53 2016-03-24 08:21:02

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

Re: MVC/MVVM Web Applications with mORMot!

Thanks, I need to study the source code more.

Offline

Board footer

Powered by FluxBB