mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
rename version to versions
This commit is contained in:
parent
4a40075f68
commit
0ae23d7556
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ int SrsApiV1::do_process_request(SrsSocket* skt, SrsHttpMessage* req)
|
||||||
ss << JOBJECT_START
|
ss << JOBJECT_START
|
||||||
<< JFIELD_ERROR(ERROR_SUCCESS) << JFIELD_CONT
|
<< JFIELD_ERROR(ERROR_SUCCESS) << JFIELD_CONT
|
||||||
<< JFIELD_ORG("urls", JOBJECT_START)
|
<< JFIELD_ORG("urls", JOBJECT_START)
|
||||||
<< JFIELD_STR("version", "the version of SRS") << JFIELD_CONT
|
<< JFIELD_STR("versions", "the version of SRS") << JFIELD_CONT
|
||||||
<< JFIELD_STR("authors", "the primary authors and contributors")
|
<< JFIELD_STR("authors", "the primary authors and contributors")
|
||||||
<< JOBJECT_END
|
<< JOBJECT_END
|
||||||
<< JOBJECT_END;
|
<< JOBJECT_END;
|
||||||
|
@ -136,7 +136,7 @@ SrsApiVersion::~SrsApiVersion()
|
||||||
|
|
||||||
bool SrsApiVersion::can_handle(const char* path, int length, const char** /*pchild*/)
|
bool SrsApiVersion::can_handle(const char* path, int length, const char** /*pchild*/)
|
||||||
{
|
{
|
||||||
return srs_path_equals("/version", path, length);
|
return srs_path_equals("/versions", path, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
int SrsApiVersion::do_process_request(SrsSocket* skt, SrsHttpMessage* req)
|
int SrsApiVersion::do_process_request(SrsSocket* skt, SrsHttpMessage* req)
|
||||||
|
|
Loading…
Reference in a new issue