Skip to content

Commit

Permalink
support GET in webcam server
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjohnson committed Apr 19, 2016
1 parent 1843218 commit 780522d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webcam/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@


class DenseCap(Resource):
def get(self):
return 'The DenseCap server seems to be running!'

def post(self):
img_id = random.randint(1, 1000000)
img_name = os.path.join(input_dir, '%d.jpg' % img_id)
Expand Down

0 comments on commit 780522d

Please sign in to comment.