diff --git a/backend/app/services/domain_checker.py b/backend/app/services/domain_checker.py index 2628f08..5794a32 100644 --- a/backend/app/services/domain_checker.py +++ b/backend/app/services/domain_checker.py @@ -459,7 +459,7 @@ class DomainChecker: 'object does not exist', ] if any(phrase in error_str for phrase in not_found_phrases): - return DomainCheckResult( + return DomainCheckResult( domain=domain, status=DomainStatus.AVAILABLE, is_available=True, diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index e245901..5b08643 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -338,19 +338,20 @@ class ApiClient { // Marketplace Listings (Pounce Direct) async getMarketplaceListings() { - // TODO: Implement backend endpoint for marketplace listings - // For now, return empty array - return Promise.resolve({ - listings: [] as Array<{ - id: number - domain: string - price: number - is_negotiable: boolean - verified: boolean - seller_name: string - created_at: string - }> - }) + return this.request('/listings') + } + + // My Listings + async getMyListings() { + return this.request('/listings/my') + } + + async createListing(data: { domain: string; asking_price: number | null; currency: string; price_type: string }) { + return this.request('/listings', { method: 'POST', body: JSON.stringify(data) }) + } + + async deleteListing(id: number) { + return this.request(`/listings/${id}`, { method: 'DELETE' }) } // Subscription