Refactored: Dynamic route loading - Added an init function which is exported. It accepts an express app instance and uses it to setup routes contained within the function. All routes going forward will be set up in this way
Refactored: Removed all routes. Added in lines to automatically load and setup routes using the new routes loading scheme
Replaced spaces with tabs
Refactored: Now exports init for use in setting up routes
Added POSTS route file to handle all actions related to posts
Added explicit value to the forms action attribute. Also changed the id of the submit button
Added test for ensuring only image files are selected for upload. Also added line to submit the form provided no errors exist
Refactored & Renamed: Moved field checks & test runner to their respective files
Refactored: Accepts a jquery object instead of anchor_id
Refactored: Moved non-core helpers to utils.js
Moved the routes loader below the app configuration calls
New Files: Result of refactoring existing code
Added new script tags for each new script file added
Removed extra whitespace
Added function to update src attributes of all image tags in the post body with their corresponding files. This happens only after the form has been cleared of errors
Updated getTags function to take a tag argument and return tags that match specified tag
Merge branch 'develop' - More validation code added in