Update src/cowboy_rest.erl

Allow function callbacks.