mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Actually have httpapi able to start calling into the plugin api
This commit is contained in:
parent
8a35f9a9e0
commit
97d3eebff6
@ -5,8 +5,9 @@
|
||||
# shillinabox javascript
|
||||
import base64
|
||||
import Cookie
|
||||
import confluent.console as console
|
||||
import confluent.auth as auth
|
||||
import confluent.console as console
|
||||
import confluent.pluginapi as pluginapi
|
||||
import confluent.util as util
|
||||
import eventlet
|
||||
import json
|
||||
@ -186,8 +187,10 @@ def resourcehandler(env, start_response):
|
||||
rsp = json.dumps({'session': querydict['session'], 'data': 'DECODEERROR'})
|
||||
start_response('200 OK', headers)
|
||||
return [rsp]
|
||||
start_response('404 Not Found', headers)
|
||||
return ["404 Unrecognized resource"]
|
||||
else:
|
||||
pluginapi.handle_path(env['PATH_INFO'], 'retrieve', cfgmgr)
|
||||
start_response('404 Not Found', headers)
|
||||
return ["404 Unrecognized resource"]
|
||||
|
||||
|
||||
def serve():
|
||||
|
Loading…
Reference in New Issue
Block a user