Files

15 lines
436 B
C++
Raw Permalink Normal View History

#include "App.hpp"
namespace molo::example::app {
void seed_services(Services& services) {
services.auth->add_user("ada", "correct-horse");
services.auth->add_user("grace", "compiler-rocks");
services.supervisor->add_worker("mailer");
services.supervisor->add_worker("indexer");
services.supervisor->start("mailer");
services.webdav->put("/files/welcome.txt", "hello from webdav\n");
}
} // namespace molo::example::app