Begin work on API endpoint
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user