Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express middleware #3

Merged
merged 9 commits into from
Sep 11, 2022
Merged

Express middleware #3

merged 9 commits into from
Sep 11, 2022

Conversation

tmarshall
Copy link
Owner

@tmarshall tmarshall commented Sep 10, 2022

Added utility for easy express routing

const express = require('express')
const soda = require('soda')

const app = express()

async function startup() {
  app.use(await soda.withExpress('./routes'))

  app.listen(5555)
  console.log('Server listening on :5555')
}
startup()

This involved a bit of refactoring. Will need to do a cleanup/refactor pass later.

@tmarshall tmarshall merged commit dfb361c into main Sep 11, 2022
@tmarshall tmarshall deleted the express-middleware branch September 11, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant