File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM ubuntu:16.04
33RUN apt-get update && apt-get install -y python3 python3-pip \
44 && apt-get clean
55
6- RUN pip3 install numpy scipy Flask neo4j-driver==1.1.0
6+ RUN pip3 install numpy scipy Flask flask-cors neo4j-driver==1.1.0
77
88RUN mkdir -p /anthill
99ADD . /anthill/
Original file line number Diff line number Diff line change 11import os
22
33from flask import Flask , request , jsonify
4+ from flask_cors import cross_origin
45from managers .Prod_Prod_Manager import Prod_Prod_Manager
56from util .ES_Client import ES_Client
67from util .InvalidUsage import InvalidUsage
@@ -40,6 +41,7 @@ def rec_prod_prod(prod_id):
4041 return jsonify (resp )
4142
4243@APP .route ('/public/prod-prod/full/<int:prod_id>' , methods = ['GET' ])
44+ @cross_origin ()
4345def rec_prod_prod_full (prod_id ):
4446 """rec_prod_prod_full
4547 returns a list of full products from elasticsearch
You can’t perform that action at this time.
0 commit comments