add router implementation for posts