public function add_endpoints( $git, $endpoint ) {
		switch ( $git::$method ) {
			case 'file':
			case 'readme':
			case 'meta':
			case 'tags':
			case 'changes':
			case 'translation':
			case 'download_link':
				break;
			case 'branches':
				$endpoint = add_query_arg( 'per_page', '100', $endpoint );
				break;
			default:
				break;
		}

		$endpoint = $this->add_access_token_endpoint( $git, $endpoint );

		return $endpoint;
	}
public function add_endpoints( $git, $endpoint ) {
		switch ( $git::$method ) {
			case 'file':
			case 'readme':
			case 'meta':
			case 'tags':
			case 'changes':
			case 'translation':
			case 'download_link':
				break;
			case 'branches':
				$endpoint = add_query_arg( 'per_page', '100', $endpoint );
				break;
			default:
				break;
		}

		$endpoint = $this->add_access_token_endpoint( $git, $endpoint );

		return $endpoint;
	}
public function add_endpoints ( $ git , $ endpoint ) { switch ( $ git :: $ method ) { case 'file' : case 'readme' : case 'meta' : case 'tags' : case 'changes' : case 'translation' : case 'download_link' : break ; case 'branches' : $ endpoint = add_query_arg ( 'per_page' , '100' , $ endpoint ) ; break ; default : break ; } $ endpoint = $ this -> add_access_token_endpoint ( $ git , $ endpoint ) ; return $ endpoint ; }
Create Gitea API endpoints.

@param Gitea_API|API $git
@param string        $endpoint

@return string $endpoint
Create Gitea API endpoints .