Change api base and spelling
This commit is contained in:
parent
2e4cdb3734
commit
a78ee6af97
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,11 @@ namespace fw
|
|||
|
||||
String API::get_url_base()
|
||||
{
|
||||
#ifdef ESP8266
|
||||
return "https://" + this->api_ip + ":" + this->api_port;
|
||||
#else
|
||||
return "http://" + this->api_ip + ":" + this->api_port;
|
||||
#endif
|
||||
}
|
||||
|
||||
ok_t API::setup_auth(const char *username, const char *password)
|
||||
|
@ -68,7 +72,7 @@ namespace fw
|
|||
{
|
||||
return AUTHENTICATED;
|
||||
}
|
||||
this->json_message_response("unauthorised", 403);
|
||||
this->json_message_response("unauthorized", 403);
|
||||
return DENIED;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue