caffeinateddomains-backend/caffeinateddomains/domains/urls.py
Kumi 0d3f1c3733
feat: add Offer model and migration
Introduce the Offer model to manage domain purchase offers. The new model includes fields for offered price, messages, intended use, and status with choices for 'pending', 'accepted', and 'rejected', linked to both the Domain and User models. Updated URLs to support offer creation and listing.

This change facilitates better tracking and management of offers made on domains, enabling more robust domain transactions.
2024-08-02 17:33:44 +02:00

7 lines
268 B
Python

from django.urls import path
from .views import DomainListCreateView, OfferListCreateView
urlpatterns = [
path("domains/", DomainListCreateView.as_view(), name="domain_list_create"),
path("offers/", OfferListCreateView.as_view(), name="offer_list_create"),
]