Exclude Web API paths from Kentico request pipeline

Jürgen Gutsch asked on June 19, 2015 10:10

Hi, we successfully running Web API with Kentico. But it seems that every Request to the Web API runs through the Kentico request pipeline and Kentico tries to find a corresponding Page in the database. Is there a way or a work around, to exclude the Web API routes from the Kentico request pipeline?

Thanks, Juergen

Correct Answer

Jürgen Gutsch answered on June 19, 2015 10:44

Got it:
Settings -> Content -> URLs and SEO -> Excluded URLs

I had to add "/api/" and whatever I want to exclude separated by semicolon :)


1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.