update method for creating resource routes