Initial draft for adding Route model and APIs

How about adding `(err error)` into func and then just call 'return' ?