support new way to load api routes

this is from @contra
oops
oops
oops
Merge pull request #1 from amoskyler/patch-1

support new way to load api routes