Begin work on API endpoint

This commit is contained in:
2022-07-21 13:40:11 +01:00
parent e5a14b2c91
commit f0acbdbfa3
5 changed files with 27 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ class TokenCommand:
elif length == 4:
if spl[1] == "add":
if not spl[2] in main.tokens.keys():
if spl[3] in ["relay"]: # more to come!
if spl[3] in ["relay", "api"]: # more to come!
main.tokens[spl[2]] = {
"hello": str(uuid4()),
"usage": spl[3],