Reversed order of directives in the api routes based on audiencce feedback
fixed typo