fixed routes, added posts controller and spec