when implement sitecoreapicontroller
, each action method make using sitecore.services.core.servicescontroller("namespace")
attribute, url this:
/sitecore/api/ssc/{namespace}/{controller}/{id}/{action}
i wonder if change default pattern, somehow in config files. particularly interested in /sitecore/api/
part, because in sense of security concerns, clients don't reveal cms platform behind scene. ask hide in http header tells microsoft asp.net explicitly.
is possible here?
edit
this link shows way customize using pipelines wonder if change base url through config files without needing custom pipeline
i had @ it, , think found out how - although haven't tested it.
it looks setting named sitecore.services.routebase
, if can't find it, uses sitecore/api/ssc/
default value.
you should able change config patch in app_config/include
folder:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <settings> <setting name="sitecore.services.routebase" value="custom/api/" /> </settings> </sitecore> </configuration>
Comments
Post a Comment