1
0
Fork 0
mirror of https://gitlab.com/niansa/discordlistforbots.git synced 2025-03-06 20:49:22 +01:00

Fixed static .js files being unreachable

This commit is contained in:
niansa 2021-02-16 20:44:56 +01:00
parent 3cfc9410fc
commit 0107bc1121

View file

@ -6,7 +6,7 @@ int main() {
drogon::app().addListener(LISTEN_ADDR, LISTEN_PORT).
enableSession(std::chrono::minutes(1200)).
createDbClient(DB_TYPE, DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD).
setFileTypes({"css", "png", "ico"});
setFileTypes({"css", "png", "ico", "js"});
// Run HTTP framework, the method will block in the internal event loop
drogon::app().run();
return 0;