routes.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. 'order', 'orders',
  7. 'news',
  8. 'trades',
  9. 'trades_on',
  10. 'orders_on',
  11. 'old_orders',
  12. 'cancel_order',
  13. 'leaderboard',
  14. 'tradables',
  15. 'gift',
  16. 'change_password',
  17. 'global_variables',
  18. 'buy_banking_license',
  19. 'take_out_personal_loan',
  20. 'repay_loan',
  21. 'issue_bond',
  22. 'loans',
  23. 'credits',
  24. 'server_version',
  25. 'tender_calendar',
  26. }
  27. push_message_types = set()
  28. upload_filtered = {
  29. 'issue_bond'
  30. }
  31. assert len(set(valid_post_routes)) == len(valid_post_routes)
  32. assert upload_filtered.issubset(valid_post_routes)
  33. # in the order in that they will be displayed by the help command
  34. client_commands = ['help',
  35. 'summarize_bank_rules',
  36. 'summarize_loan_rules',
  37. 'login',
  38. 'register',
  39. 'change_pw',
  40. 'credits',
  41. 'news',
  42. 'tradables',
  43. 'take_out_personal_loan',
  44. 'repay_loan',
  45. 'loans',
  46. 'depot',
  47. 'orders',
  48. 'orders_on',
  49. 'old_orders',
  50. 'trades',
  51. 'trades_on',
  52. 'buy',
  53. 'sell',
  54. 'gift',
  55. 'cancel_order',
  56. 'issue_bond',
  57. 'buy_banking_license',
  58. 'tender_calendar',
  59. 'mro_qualified_credits',
  60. 'leaderboard',
  61. 'exit',
  62. ]