fishyboteso/fishy/web/urls.py
DESKTOP-JVKHS7I\Adam 3e96fbed2c 0.3.3 reworked notifications again (now uses discord chat)
- fixed ui scaling issues
- now uses callables for thread comunication instead of enums (removed comms.py altogether)
- added options to run using test server
2020-05-19 10:56:50 +05:30

24 lines
545 B
Python

import sys
if "--local-server" in sys.argv:
domain = "http://127.0.0.1:5000"
elif "--test-server" in sys.argv:
domain = "https://fishyeso-test.herokuapp.com"
else:
domain = "https://fishyeso.herokuapp.com"
user = domain + "/api/user"
notify = domain + "/api/notify"
subscription = domain + "/api/subscription/"
hole_depleted = domain + "/api/hole_depleted"
session = domain + "/api/session"
terms = domain + "/terms.html"
def get_notification_page(uid):
return domain + f"?uid={uid}"
def get_terms_page():
return terms