Adds the restmod with ui-router post