public static function getDefaultPostRoutes( $postType)
    {
        $baseRouteName = str_replace('_', '.', $postType->slug);

        return [
          'defaultRoute' => $baseRouteName.'.single',
          'list' => [
            $baseRouteName.'.single' => $postType->name.' single Post',
          ]
        ];
    }
public static function getDefaultPostRoutes( $postType)
    {
        $baseRouteName = str_replace('_', '.', $postType->slug);

        return [
          'defaultRoute' => $baseRouteName.'.single',
          'list' => [
            $baseRouteName.'.single' => $postType->name.' single Post',
          ]
        ];
    }
public static function getDefaultPostRoutes ( $ postType ) { $ baseRouteName = str_replace ( '_' , '.' , $ postType -> slug ) ; return [ 'defaultRoute' => $ baseRouteName . '.single' , 'list' => [ $ baseRouteName . '.single' => $ postType -> name . ' single Post' , ] ] ; }
Get Default routes for post types that do not have their own Controller.

@param  object $postType
@return array
Get Default routes for post types that do not have their own Controller .