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

Refactor as node library using express #1

Merged
merged 2 commits into from
May 16, 2022
Merged

Refactor as node library using express #1

merged 2 commits into from
May 16, 2022

Conversation

giraugh
Copy link
Member

@giraugh giraugh commented May 16, 2022

Usage

epoxy <static-dir> <routes-script>

Example of routes script

const eventDetailRoute = async (req) => {
  return { head: `<meta property="coolness" value="100">` }
}

export default {
  '/event/:eventid': eventDetailRoute,
}

@giraugh giraugh self-assigned this May 16, 2022
Copy link
Member

@GRA0007 GRA0007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@giraugh giraugh merged commit feb3220 into main May 16, 2022
@GRA0007 GRA0007 deleted the refactor/express branch May 16, 2022 12:56
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.

2 participants