change route and add type to post