diff options
author | Ivan Dolgov <ivan@dolgov.fi> | 2019-03-16 15:14:18 +0200 |
---|---|---|
committer | Ivan Dolgov <ivan@dolgov.fi> | 2019-03-16 15:33:28 +0200 |
commit | 227c1ae67bb80a5e9b9036a9bdb9f11be073669f (patch) | |
tree | 66ed50756e86a265c8bf08d0493bcc466c83d026 /ickapi/routes.py | |
parent | 01bdba935a667e8c1606d6d040086488c82b0e38 (diff) | |
download | ickapi-227c1ae67bb80a5e9b9036a9bdb9f11be073669f.tar.gz |
Initial setupivan/initial
Diffstat (limited to 'ickapi/routes.py')
-rw-r--r-- | ickapi/routes.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ickapi/routes.py b/ickapi/routes.py new file mode 100644 index 0000000..3111cca --- /dev/null +++ b/ickapi/routes.py @@ -0,0 +1,12 @@ +"""Route module. + +All endpoints are added to the router here. +""" + +import ickapi + + +def setup_routes(app): + """Add endpoints to a router.""" + version = ickapi.VersionView() + app.router.add_get('/version', version.get_version) |