diff options
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) |