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

Refactored how we require shared middlewares from web/ #9893

Merged
merged 2 commits into from
Sep 21, 2018

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented Sep 20, 2018

refs #9866

  • use package notation
  • get rid of x requires for middlewares
  • improved readability
  • do not refactor web/api/v0.1

@kirrg001 kirrg001 force-pushed the shared-package branch 2 times, most recently from 2840fa5 to 01af50b Compare September 20, 2018 19:04
@kirrg001 kirrg001 changed the title [WIP] Refactored how we require shared middlewares from web/ Refactored how we require shared middlewares from web/ Sep 20, 2018
@kirrg001
Copy link
Contributor Author

@rishabhgrg Ready for review. Tests should pass 🤞

@kirrg001
Copy link
Contributor Author

Conflicting files
core/server/web/admin/app.js

NOOOO 😁

refs TryGhost#9866

- use package notation
- get rid of x requires for middlewares
- improved readability
- do not refactor web/api/v0.1
const sitemapHandler = require('../../data/xml/sitemap/handler');

// Route Service
const themeService = require('../../services/themes');

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@rishabhgrg rishabhgrg merged commit 2134748 into TryGhost:master Sep 21, 2018
allouis added a commit that referenced this pull request Sep 25, 2018
* master: (25 commits)
  Version bump to 2.1.4
  Updated Ghost-Admin to 2.1.4
  Version bump to 2.1.4-beta.1
  Updated Ghost-Admin to 2.1.4-beta.1
  Updated private-sites to not redirect to full urls
  Bumped ghost-ignition to version 2.9.6
  Upgrading Casper to 2.6.3
  Refactored url utility to generate multiple API version URLs (#9897)
  Added new endpoint to upload square profile images with dimension validation (#9862)
  Removed change frequency and priority fields from sitemap generator (#9771)
  🎨Added case insensitive support for redirects (#9755)
  Refactored direct usages of api controllers
  Normalised how we require models
  Refactored how we require shared middlewares from web/ (#9893)
  Removed duplicate 'id' for User permittedOptions
  Updated permittedOptions to correctly call super
  Updated base model to remove extraAllowedProperties
  Extended uncapitalise unit tests (#9891)
  Removed `res.isAdmin` from admin express app (#9889)
  Refactored `web/middleware` and `web/utils` to `web/shared` (#9892)
  ...
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