1
0
mirror of https://github.com/gryf/ferrit.git synced 2026-02-07 08:45:53 +01:00

Added new REST endpoints.

Two new endponds added:

- /a/plugins/events-log/events/
- /a/changes
This commit is contained in:
2019-10-25 21:05:13 +02:00
parent e547a9a507
commit 802cce3f83

View File

@@ -2,7 +2,7 @@ import bottle
@bottle.route('/plugins/events-log/')
def events(params=None):
def events_log(params=None):
return ''
@@ -31,4 +31,16 @@ def projects(params=None):
"target": "_blank"}]}}
@bottle.post('/a/changes')
def changes(param=None):
print(param)
print(bottle.request.json)
pass
@bottle.route('/a/plugins/events-log/events/')
def events(t1=None):
return {}
bottle.run(host='localhost', port=8181, debug=True)