Permalink
Browse files

Removed app/json header

  • Loading branch information...
1 parent f1e4d41 commit 1ce9847027ae872d36413d5b5e80a9906f13a79c @GeorgeNava committed Jun 24, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 application.py
View
@@ -18,19 +18,16 @@ def index():
@app.route('/api/:date',method='GET')
def apiGetActivities(date=None):
data = models.getActivities(date)
- app.response.set_header('content-type','application/json')
return data
@app.route('/api/:date',method='POST')
def apiSaveActivity(date=None):
- app.response.set_header('content-type','application/json')
models.saveActivity(date,app.request.forms.get('text'))
return '{"status":200}'
@app.route('/api/:date',method='DELETE')
def apiDropActivity(date=None):
models.dropActivity(date)
- app.response.set_header('content-type','application/json')
return '{"status":200}'

0 comments on commit 1ce9847

Please sign in to comment.