Correcting some typos
This commit is contained in:
parent
a1c0f12f21
commit
74770b75e7
@ -56,8 +56,8 @@ class OCTI(object):
|
|||||||
Delete a OpenCTI instance by its id in the database.
|
Delete a OpenCTI instance by its id in the database.
|
||||||
:return: status of the operation in JSON
|
:return: status of the operation in JSON
|
||||||
"""
|
"""
|
||||||
if db.session.query(exists().where(OCTIInst.id == misp_id)).scalar():
|
if db.session.query(exists().where(OCTIInst.id == opencti_id)).scalar():
|
||||||
db.session.query(OCTIInst).filter_by(id=misp_id).delete()
|
db.session.query(OCTIInst).filter_by(id=opencti_id).delete()
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
return {"status": True,
|
return {"status": True,
|
||||||
"message": "OpenCTI instance deleted"}
|
"message": "OpenCTI instance deleted"}
|
||||||
|
@ -59,7 +59,7 @@ app.register_blueprint(ioc_bp, url_prefix='/api/ioc')
|
|||||||
app.register_blueprint(whitelist_bp, url_prefix='/api/whitelist')
|
app.register_blueprint(whitelist_bp, url_prefix='/api/whitelist')
|
||||||
app.register_blueprint(config_bp, url_prefix='/api/config')
|
app.register_blueprint(config_bp, url_prefix='/api/config')
|
||||||
app.register_blueprint(misp_bp, url_prefix='/api/misp')
|
app.register_blueprint(misp_bp, url_prefix='/api/misp')
|
||||||
app.register_blueprint(octi_bp, url_prefix='/api/octi')
|
app.register_blueprint(octi_bp, url_prefix='/api/opencti')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
ssl_cert = "{}/{}".format(path[0], 'cert.pem')
|
ssl_cert = "{}/{}".format(path[0], 'cert.pem')
|
||||||
|
Loading…
Reference in New Issue
Block a user