danieleteti / delphimvcframework

DMVCFramework (for short) is a popular and powerful framework for WEB API in Delphi. Supports RESTful and JSON-RPC WEB APIs development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible problem with '/' in Controller with [MVCPath('/')]

TomsGoe opened this issue · comments

If you use the example "plainclient" and "plainserver" from the framework, you always get the error message "not found". It seems that the search for the controller implemented for the URL does not work correctly.
After swapping the blocks in MVCFramework.Router.pas the problem seems to be solved. I ask for verification.
2020-10-29 13_02_26-jwtplainclient - RAD Studio 10 1 Berlin - MVCFramework Router

I have the same issue here in master.

[MVCPath('/')]
TDocsController = class(TMVCController)
public
...
DelphiMVCFramework
HTTP 404: [EMVCException] Not Found