added middleware restfull and token