Adding authorization to all the APIs