mirror of
https://github.com/gryf/ferrit.git
synced 2026-02-13 12:55:46 +01:00
Added new REST endpoints.
Two new endponds added: - /a/plugins/events-log/events/ - /a/changes
This commit is contained in:
@@ -2,7 +2,7 @@ import bottle
|
|||||||
|
|
||||||
|
|
||||||
@bottle.route('/plugins/events-log/')
|
@bottle.route('/plugins/events-log/')
|
||||||
def events(params=None):
|
def events_log(params=None):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
@@ -31,4 +31,16 @@ def projects(params=None):
|
|||||||
"target": "_blank"}]}}
|
"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)
|
bottle.run(host='localhost', port=8181, debug=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user