Fixed a little bug using the Route::api function.