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

Clean up api #3

Open
4 tasks
luke-john opened this issue Nov 11, 2014 · 0 comments
Open
4 tasks

Clean up api #3

luke-john opened this issue Nov 11, 2014 · 0 comments

Comments

@luke-john
Copy link
Member

Currently the api does not really make a whole lot of sense.

  • It should be split out into separate files.
    • routes/api/
      • document.js
      • station.js
  • It should also take advantage of the expressjs Router() middleware and have the paths set in those files.
  • The station logic should be moved out of the api files and into the station helper.
  • Station actions should wait for a response before updating the db and update the db accordingly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant