LearnUmbraco7 icon indicating copy to clipboard operation
LearnUmbraco7 copied to clipboard

Umbraco surface controller routing problem

Open SabaTD opened this issue 6 years ago • 1 comments

Hi, i just copyed your code under MyNameSurfaceController Class. So i hoped to route controller as you described : /umbraco/surface/mynamesurface/getnames But i get HTTP Error 404.0 - Not Found. I tried everything I could but no result. Umbraco version is 7.12.4. Anyone had same problem before ?

SabaTD avatar Nov 22 '18 07:11 SabaTD

Hi There, There is no need to include "surface" in the controller name. This was changed. Make sure the action method GetNames include HttpGetAttribute [HttpGet]

Hope this helps.

rasmuseeg avatar Nov 22 '18 08:11 rasmuseeg