Merge remote-tracking branch 'nitro/main'
This commit is contained in:
@@ -112,6 +112,12 @@ app.use(express.json({
|
|||||||
verify: (req, res, buf) => { req.rawBody = buf || Buffer.alloc(0); },
|
verify: (req, res, buf) => { req.rawBody = buf || Buffer.alloc(0); },
|
||||||
}));
|
}));
|
||||||
app.use('/hook', hookLimiter, verifyWebhookSignature, hookRouter);
|
app.use('/hook', hookLimiter, verifyWebhookSignature, hookRouter);
|
||||||
|
|
||||||
|
// Serve o app diretamente na raiz — sem landing page intermediária
|
||||||
|
app.get('/', (req, res) => {
|
||||||
|
res.sendFile(join(__dirname, 'public', 'app.html'));
|
||||||
|
});
|
||||||
|
|
||||||
app.use(express.static(join(__dirname, 'public'), {
|
app.use(express.static(join(__dirname, 'public'), {
|
||||||
etag: true,
|
etag: true,
|
||||||
setHeaders(res, filePath) {
|
setHeaders(res, filePath) {
|
||||||
|
|||||||
Reference in New Issue
Block a user