Added S3 Init Function
This commit is contained in:
@@ -23,10 +23,12 @@ import emailAsUserRoutes from "./routes/emailAsUser";
|
||||
|
||||
import {sendMail} from "./utils/mailer";
|
||||
import {loadSecrets, secrets} from "./utils/secrets";
|
||||
import {initS3} from "./utils/s3";
|
||||
|
||||
async function main() {
|
||||
const app = Fastify({ logger: true });
|
||||
await loadSecrets();
|
||||
await initS3();
|
||||
|
||||
/*app.addHook("onRequest", (req, reply, done) => {
|
||||
console.log("Incoming:", req.method, req.url, "Headers:", req.headers)
|
||||
|
||||
Reference in New Issue
Block a user