Go to file
Raphaël Vinot 66bad32632 Initial commit 2015-03-02 14:55:34 +01:00
web Initial commit 2015-03-02 14:55:34 +01:00
.gitignore Initial commit 2015-03-02 14:55:34 +01:00
LICENSE Initial commit 2015-03-02 14:55:34 +01:00
README.md Initial commit 2015-03-02 14:55:34 +01:00
config.ini.sample Initial commit 2015-03-02 14:55:34 +01:00
install.sh Initial commit 2015-03-02 14:55:34 +01:00
requirements.txt Initial commit 2015-03-02 14:55:34 +01:00
run_redis.sh Initial commit 2015-03-02 14:55:34 +01:00
runapp.py Initial commit 2015-03-02 14:55:34 +01:00
update_deps.sh Initial commit 2015-03-02 14:55:34 +01:00
url_abuse_async.py Initial commit 2015-03-02 14:55:34 +01:00
worker.py Initial commit 2015-03-02 14:55:34 +01:00

README.md

Add a new module

Look at the existings functions/modules. The changes will have to be made in the following files:

  • Add the function you want to execure in url_abuse_async.py
  • Add a route in web/__init__.py. This route will do an async call to the function defined in url_abuse_async.py. The parameter of the function is sent in an POST object
  • Add a statement in web/templates/url-report.html. The data option is the parameter to pass to the javascript directive
  • Add a directive in web/static/main.js, it will take care of passing the parameter to the backend and regularly pull for the response of the async call