Create rest api for expend
Update function for Expend