سؤال

I'm following some tutorials about creating a HttpSelfHostServer to test my Web Api. The issue I'm having is that my core API is inside an area and I cannot get my routes registered correctly.

Anyone have a good tutorial or sample code to get this working with an Area specifically?

هل كانت مفيدة؟

المحلول

I was able to solve this problem by moving the routes that were inside my AreaRegistration down into the core WebApiConfig where the main routes are usually defined.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top