mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
[web-src/jsonapi] endpoint GET /api/update/meta -> PUT /api/rescan
This commit is contained in:
committed by
ejurgensen
parent
bf7c96d23f
commit
8c024387ae
@@ -788,7 +788,7 @@ jsonapi_reply_update(struct httpd_request *hreq)
|
||||
}
|
||||
|
||||
static int
|
||||
jsonapi_reply_meta_update(struct httpd_request *hreq)
|
||||
jsonapi_reply_meta_rescan(struct httpd_request *hreq)
|
||||
{
|
||||
library_metarescan();
|
||||
return HTTP_NOCONTENT;
|
||||
@@ -3518,7 +3518,7 @@ static struct httpd_uri_map adm_handlers[] =
|
||||
{ EVHTTP_REQ_GET, "^/api/config$", jsonapi_reply_config },
|
||||
{ EVHTTP_REQ_GET, "^/api/library$", jsonapi_reply_library },
|
||||
{ EVHTTP_REQ_GET, "^/api/update$", jsonapi_reply_update },
|
||||
{ EVHTTP_REQ_GET, "^/api/update/meta$", jsonapi_reply_meta_update },
|
||||
{ EVHTTP_REQ_PUT, "^/api/rescan$", jsonapi_reply_meta_rescan },
|
||||
{ EVHTTP_REQ_POST, "^/api/spotify-login$", jsonapi_reply_spotify_login },
|
||||
{ EVHTTP_REQ_GET, "^/api/spotify$", jsonapi_reply_spotify },
|
||||
{ EVHTTP_REQ_GET, "^/api/pairing$", jsonapi_reply_pairing_get },
|
||||
|
||||
Reference in New Issue
Block a user