Add settings flag to make swagger route  optional