fixed api routes, displaying post stubs