I am using Sitecore Headless Services Server XM 18.0.0, and the Layout Service(like: /sitecore/api/layout/render/jss?item=) is working just fine. But when I tried to use the Dictionary Service I got this error message:
{"Message":"No HTTP resource was found that matches the request URI 'http://localhost:50900/sitecore/api/jss/dictionary/TestApp/en/?sc_apikey=<HereIsMyApiKey>'.","MessageDetail":"No type was found that matches the controller named 'DictionaryService'."}
Sitecore.JavaScriptServices.Globalization.dll is there in my bin folder.
DictionaryServiceController is in the config as an "allowedController".
My ApiKey setting is:
- CORS Origins: "*"
- Allowed Controllers: "Sitecore.LayoutService.Mvc.Controllers.LayoutServiceController; Sitecore.JavaScriptServices.Globalization.Controllers.DictionaryServiceController;"
- Impersonation User: "extranet\anonymous"
My app setting is:
<app name="TestApp" sitecorePath="/sitecore/content/Sitecore Headless/TestApp" dictionaryPath="/sitecore/content/Sitecore Headless/TestApp/Dictionary folder" inherits="defaults" patch:source="z.Sitecore.JavaScriptServices.config"/>
What am I missed here?