Move API handler to a more appropriate place; rename endpoint