Skip to content

Instantly share code, notes, and snippets.

@sawyerh
Created June 27, 2021 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sawyerh/7f56d4192f06d05977ebc43f01c7fad0 to your computer and use it in GitHub Desktop.
Save sawyerh/7f56d4192f06d05977ebc43f01c7fad0 to your computer and use it in GitHub Desktop.
Routes.js: Routing using state machines
// routes.js
export const routes = {
apply: {
documents: "/apply/upload-docs",
household: "/apply/household",
income: "/apply/income",
name: "/apply/name",
review: "/apply/review",
success: "/apply/success"
},
auth: {
create: "/auth/create-account",
login: "/auth/login",
reset: "/auth/reset-password"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment