⚡
Boltz
  • Boltz
  • Install
  • Hello World
  • Express
  • How Endpoints Work
Powered by GitBook
On this page

Was this helpful?

Express

Express.js is a popular web framework that can easily be added to your app on Boltz with the code below.

If you export an express app under the request module export, you can have content served through express. Make sure you include express in your package.json dependencies.

index.js
const express = require('express');

const app = express();

app.get('/', (req, res) => {
    res.status(200).send('Hello World!').end();
}

exports.request = app;

PreviousHello WorldNextHow Endpoints Work

Last updated 3 years ago

Was this helpful?