Fix API methods + domain_checker indentation
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
This commit is contained in:
@ -338,19 +338,20 @@ class ApiClient {
|
|||||||
|
|
||||||
// Marketplace Listings (Pounce Direct)
|
// Marketplace Listings (Pounce Direct)
|
||||||
async getMarketplaceListings() {
|
async getMarketplaceListings() {
|
||||||
// TODO: Implement backend endpoint for marketplace listings
|
return this.request<any[]>('/listings')
|
||||||
// For now, return empty array
|
}
|
||||||
return Promise.resolve({
|
|
||||||
listings: [] as Array<{
|
// My Listings
|
||||||
id: number
|
async getMyListings() {
|
||||||
domain: string
|
return this.request<any[]>('/listings/my')
|
||||||
price: number
|
}
|
||||||
is_negotiable: boolean
|
|
||||||
verified: boolean
|
async createListing(data: { domain: string; asking_price: number | null; currency: string; price_type: string }) {
|
||||||
seller_name: string
|
return this.request<any>('/listings', { method: 'POST', body: JSON.stringify(data) })
|
||||||
created_at: string
|
}
|
||||||
}>
|
|
||||||
})
|
async deleteListing(id: number) {
|
||||||
|
return this.request<void>(`/listings/${id}`, { method: 'DELETE' })
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subscription
|
// Subscription
|
||||||
|
|||||||
Reference in New Issue
Block a user