Updated frontend routes module.
Added add post route and function.