0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

modules: Rename webhook/index to more consistent web_ prefix.

This commit is contained in:
Jason Volk 2019-08-03 14:56:28 -07:00
parent 0435915386
commit 07c29ab914
4 changed files with 13 additions and 13 deletions

View file

@ -240,8 +240,6 @@ ircd::m::module_names
"m_command",
"m_control",
"well_known",
"webhook",
"stats",
"federation_backfill_ids",
"federation_backfill",
"federation_event_auth",
@ -315,9 +313,11 @@ ircd::m::module_names
"client_thirdparty_protocols",
"client_versions",
"client_voip_turnserver",
"index",
"web_root",
"web_hook",
"m_listen",
"m_vm",
"stats",
};
/// This is a list of modules that are considered "optional" and any loading
@ -325,7 +325,7 @@ ircd::m::module_names
decltype(ircd::m::module_names_optional)
ircd::m::module_names_optional
{
"web_hook",
};
///////////////////////////////////////////////////////////////////////////////

View file

@ -64,8 +64,8 @@ net_dns_la_CPPFLAGS = $(AM_CPPFLAGS) @BOOST_CPPFLAGS@
net_dns_la_LDFLAGS = $(AM_LDFLAGS) @BOOST_LDFLAGS@
net_dns_la_LIBADD = $(AM_LIBS) @BOOST_LIBS@
console_la_SOURCES = console.cc
index_la_SOURCES = index.cc
webhook_la_SOURCES = webhook.cc
web_root_la_SOURCES = web_root.cc
web_hook_la_SOURCES = web_hook.cc
well_known_la_SOURCES = well_known.cc
module_LTLIBRARIES = \
@ -73,8 +73,8 @@ module_LTLIBRARIES = \
stats.la \
net_dns.la \
console.la \
index.la \
webhook.la \
web_root.la \
web_hook.la \
well_known.la \
###

View file

@ -13,7 +13,7 @@ using namespace ircd;
mapi::header
IRCD_MODULE
{
"Webhook Handler"
"Web hook Handler"
};
conf::item<std::string>

View file

@ -65,7 +65,7 @@ root_delete
root_resource, "DELETE", non_get_root
};
/// legacy; will be removed
/// LEGACY
conf::item<std::string>
webroot_path
{
@ -74,9 +74,9 @@ webroot_path
};
conf::item<std::string>
index_path
root_path
{
{ "name", "ircd.index.path" },
{ "name", "ircd.web.root.path" },
{ "default", string_view{webroot_path} },
};
@ -85,7 +85,7 @@ init_files()
{
const string_view &path
{
index_path
root_path
};
if(empty(path))