Add /api/set route