mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-17 23:37:47 +02:00
18 lines
415 B
Python
18 lines
415 B
Python
from rest_framework import serializers
|
|
|
|
from startScan.models import ScannedHost, ScanHistory, WayBackEndPoint
|
|
|
|
|
|
class ScanHistorySerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
model = ScannedHost
|
|
fields = '__all__'
|
|
# lookup_field = 'scan_history'
|
|
|
|
class EndpointSerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
model = WayBackEndPoint
|
|
fields = '__all__'
|