mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-10 17:10:55 +08:00
Add backend endpoint
This commit is contained in:
@@ -190,6 +190,11 @@ class SummarizeVarAPI(Resource):
|
||||
def post(self, data_adaptor):
|
||||
return common_rest.summarize_var_post(request, data_adaptor)
|
||||
|
||||
class SpatialImageAPI(Resource):
|
||||
@rest_get_data_adaptor
|
||||
def get(self, data_adaptor):
|
||||
return common_rest.spatial_image_get(request, data_adaptor)
|
||||
|
||||
|
||||
def get_api_base_resources(bp_base):
|
||||
"""Add resources that are accessed from the api url"""
|
||||
@@ -222,6 +227,8 @@ def get_api_dataroot_resources(bp_dataroot):
|
||||
# Computation routes
|
||||
add_resource(DiffExpObsAPI, "/diffexp/obs")
|
||||
add_resource(LayoutObsAPI, "/layout/obs")
|
||||
# Spatial routes
|
||||
add_resource(SpatialImageAPI, "/spatial/image")
|
||||
return api
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user