fishyboteso/fishy/web/urls.py

27 lines
631 B
Python
Raw Normal View History

import sys
if "--local-server" in sys.argv:
domain = "http://127.0.0.1:5000"
elif "--test-server" in sys.argv:
2023-02-05 13:47:00 +00:00
domain = "https://fishyeso-test.definex.in"
else:
2023-02-05 13:47:00 +00:00
domain = "https://fishyeso.definex.in"
user = domain + "/api/user"
notify = domain + "/api/notify"
2020-10-29 21:24:52 +00:00
subscription = domain + "/api/notify_semifish"
hole_depleted = domain + "/api/hole_depleted"
session = domain + "/api/session"
terms = domain + "/terms.html"
discord = domain + "/api/discord"
2020-11-02 19:04:50 +00:00
beta = domain + "/api/beta"
2021-05-16 03:04:35 +00:00
ping = domain + "/api/ping"
def get_notification_page(uid):
return domain + f"?uid={uid}"
def get_terms_page():
return terms