routes.py 588 B

1234567891011121314151617181920212223242526
  1. # for example host:port/json/create_game is a valid route if using the POST method
  2. valid_post_routes = {
  3. 'login',
  4. 'register',
  5. 'depot',
  6. 'activate_key',
  7. 'order',
  8. 'orders',
  9. 'news',
  10. 'trades',
  11. 'trades_on',
  12. 'orders_on',
  13. 'old_orders',
  14. 'cancel_order',
  15. 'leaderboard',
  16. 'tradables',
  17. 'gift',
  18. 'change_password'
  19. }
  20. push_message_types = set()
  21. upload_filtered = set() # TODO enable upload filter again when accuracy improves
  22. assert len(set(valid_post_routes)) == len(valid_post_routes)
  23. assert upload_filtered.issubset(valid_post_routes)