mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
Added setFileTypes call
This commit is contained in:
parent
504b1a3b36
commit
72c0ab94a1
1 changed files with 4 additions and 1 deletions
5
main.cc
5
main.cc
|
@ -3,7 +3,10 @@
|
|||
|
||||
int main() {
|
||||
//Set HTTP listener address and port
|
||||
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);
|
||||
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"});
|
||||
//Run HTTP framework, the method will block in the internal event loop
|
||||
drogon::app().run();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue