Skip to content
This repository was archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #10 from hel-repo/dev
Browse files Browse the repository at this point in the history
Hel 3.0.0
  • Loading branch information
Fingercomp authored Nov 3, 2016
2 parents d88060b + 814f20b commit 31b31b9
Show file tree
Hide file tree
Showing 10 changed files with 285 additions and 418 deletions.
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
3.0.0
-----
- Unified responses.
- Refactored the code.
- Removed stats.downloads.
- Renamed data.data (``Packages:GET``) to data.list.
- Added the same metadata to the response of ``Users:GET`` as the ``Packages:GET``'s.
- Always set Content-Type to application/json.

2.1.1
-----
- Added more CORS headers.
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Getting Started - Dev
- ``$ $VENV/bin/pip install -e .``
- ``$ $VENV/bin/pserve development.ini``

This will setup and run local copy of hel.
This will set up and run a local copy of hel.
http://127.0.0.1:6543/

Testing
Expand Down
4 changes: 1 addition & 3 deletions hel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __call__(self, value, system):
request = system.get('request')
if request is not None:
if not hasattr(request, 'response_content_type'):
request.response_content_type = 'application/json'
request.response.content_type = 'application/json'
return json.dumps(value, default=json_util.default)


Expand Down Expand Up @@ -133,8 +133,6 @@ def get_version(request):
config.add_request_method(is_logged_in, 'logged_in', reify=True)

# Setup routes
config.add_route('home', '/')
config.add_route('teapot', '/teapot')
config.add_route('auth', '/auth')
config.add_route('curuser', '/profile')
config.scan()
Expand Down
Loading

0 comments on commit 31b31b9

Please sign in to comment.