Skip to content

Commit

Permalink
Merge pull request #82 from mekanix/feature/init
Browse files Browse the repository at this point in the history
Initialize app
  • Loading branch information
mekanix authored Nov 17, 2020
2 parents a1db2e4 + 05fb63f commit 87c8f84
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/freenit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e


if [ "${1}" = "--version" ]; then
echo "0.1.16"
echo "0.1.17"
exit 0
fi

Expand Down
4 changes: 2 additions & 2 deletions freenit/project/application.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def init(config_name, websocket=True):
def init(config_name):
from importlib import import_module
from freenit import create_app
from config import configs
Expand All @@ -7,5 +7,5 @@ def init(config_name, websocket=True):
app = import_module(f'{app_name}')
config = configs[config_name]
application = create_app(config)
app.create_app(application, websocket)
app.create_app(application)
return application
6 changes: 3 additions & 3 deletions freenit/project/project/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from freenit.api import register_endpoints
from freenit.api import create_api


def create_api(app):
register_endpoints(app, '/api/v0', [])
def create_app(app):
create_api(app)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name='freenit',
version='0.1.16',
version='0.1.17',
description='REST API framework based on Flask-Smorest',
long_description=README,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 87c8f84

Please sign in to comment.