Skip to content

Commit

Permalink
refactor: Remove unused dataset endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Nov 7, 2024
1 parent 737a3e6 commit e748ad6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions uvdat/core/rest/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ def map_layers(self, request, **kwargs):
# Return response with rendered data
return Response(serializer.data, status=200)

@action(detail=True, methods=['get'])
def convert(self, request, **kwargs):
dataset = self.get_object()
dataset.spawn_conversion_task()
return HttpResponse(status=200)

@action(detail=True, methods=['get'])
def network(self, request, **kwargs):
dataset = self.get_object()
Expand Down
4 changes: 0 additions & 4 deletions web/src/api/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ export async function getDatasetLayers(
return layers.toSorted((a, b) => a.index - b.index);
}

export async function convertDataset(datasetId: number): Promise<Dataset> {
return (await apiClient.get(`datasets/${datasetId}/convert`)).data;
}

export async function getDatasetNetwork(datasetId: number): Promise<Network[]> {
return (await apiClient.get(`datasets/${datasetId}/network`)).data;
}
Expand Down

0 comments on commit e748ad6

Please sign in to comment.