Added a construct with an authorization to the post controller.