Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def key(): # press keyboard

@app.route('/webcam')
@crossdomain(origin='*')
def webcam(): # say hi!
def webcam():
if auth(request.args.get('password')) is False: return 'authfail'
from VideoCapture import Device
cam = Device()
Expand All @@ -122,7 +122,7 @@ def webcam(): # say hi!

@app.route('/screenshot')
@crossdomain(origin='*')
def screenshot(): # say hi!
def screenshot():
if auth(request.args.get('password')) is False: return 'authfail'
@entrypoint
def show(backend='auto'):
Expand Down