Fixed router to handle plugin routes