remake restfule api routing interface