bx509: Rename end-points; doc Negotiate more

Leaving old end-point names around.
This commit is contained in:
Nicolas Williams
2021-04-06 13:55:14 -05:00
parent 9dcab76724
commit d72c4af635
2 changed files with 62 additions and 18 deletions

View File

@@ -1670,9 +1670,11 @@ route(void *cls,
ret = health(method, &r);
else if (strcmp(method, "GET") != 0)
ret = bad_405(&r, method);
else if (strcmp(url, "/bx509") == 0)
else if (strcmp(url, "/get-cert") == 0 ||
strcmp(url, "/bx509") == 0) /* old name */
ret = bx509(&r);
else if (strcmp(url, "/bnegotiate") == 0)
else if (strcmp(url, "/get-negotiate-token") == 0 ||
strcmp(url, "/bnegotiate") == 0) /* old name */
ret = bnegotiate(&r);
else
ret = bad_404(&r, url);