mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
ircd/modules: Fix init prio removal related.
This commit is contained in:
parent
382d1b0bf3
commit
dc4b17f84a
2 changed files with 8 additions and 11 deletions
|
@ -26,7 +26,6 @@ namespace ircd
|
|||
void handle_request(client &client, parse::capstan &pc, const http::request::head &head);
|
||||
}
|
||||
|
||||
IRCD_INIT_PRIORITY(STD_CONTAINER)
|
||||
decltype(ircd::resource::resources)
|
||||
ircd::resource::resources
|
||||
{};
|
||||
|
|
|
@ -21,19 +21,11 @@
|
|||
|
||||
using namespace ircd;
|
||||
|
||||
mapi::header IRCD_MODULE
|
||||
{
|
||||
"Web root content resource",
|
||||
};
|
||||
|
||||
IRCD_INIT_PRIORITY(STD_CONTAINER)
|
||||
std::map<std::string, std::string, iless> files
|
||||
{
|
||||
};
|
||||
{};
|
||||
|
||||
__attribute__((constructor))
|
||||
void
|
||||
init_0()
|
||||
init_files()
|
||||
{
|
||||
// TODO: XXX
|
||||
for(const auto &file : fs::ls_recursive("/home/jason/charybdis/charybdis/modules/static"))
|
||||
|
@ -98,3 +90,9 @@ resource::method root_get
|
|||
{
|
||||
root_resource, "GET", get_root
|
||||
};
|
||||
|
||||
mapi::header IRCD_MODULE
|
||||
{
|
||||
"Web root content resource",
|
||||
init_files
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue