Marthee commited on
Commit
9a8677c
·
verified ·
1 Parent(s): 8f76424

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -3,16 +3,16 @@ import tsadropboxretrieval
3
  import pdftotext
4
 
5
  app = Flask(__name__)
6
- API_KEY = "adrpdftotext" # Replace with your actual API key
7
 
8
- def check_api_key():
9
- api_key = request.headers.get("x-api-key")
10
- if api_key != API_KEY:
11
- abort(403) # Forbidden if API key is missing or incorrect
12
 
13
  @app.route('/process', methods=['POST'])
14
  def process():
15
- check_api_key()
16
  data = request.json
17
  print(data)
18
  dbxTeam= tsadropboxretrieval.ADR_Access_DropboxTeam('user')
 
3
  import pdftotext
4
 
5
  app = Flask(__name__)
6
+ # API_KEY = "adrpdftotext" # Replace with your actual API key
7
 
8
+ # def check_api_key():
9
+ # api_key = request.headers.get("x-api-key")
10
+ # if api_key != API_KEY:
11
+ # abort(403) # Forbidden if API key is missing or incorrect
12
 
13
  @app.route('/process', methods=['POST'])
14
  def process():
15
+ # check_api_key()
16
  data = request.json
17
  print(data)
18
  dbxTeam= tsadropboxretrieval.ADR_Access_DropboxTeam('user')