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

Redirect deprecated routes #50

Merged
merged 5 commits into from Apr 27, 2016
Merged

Conversation

rowanmanning
Copy link
Member

This redirects file, module, and documentation routes in the same way as bundle routes are redirected.

@@ -0,0 +1,13 @@
'use strict';

Choose a reason for hiding this comment

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

what about putting this in the /deprecated folder?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, I've moved it


const request = require('supertest');

describe('GET /v1/files', function() {

Choose a reason for hiding this comment

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

I'd personally find it easier if this was in the files.js but in a different describe, but I don't have a strong opinion about it

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah I'm trying to match the filenames in here to the URLs

Choose a reason for hiding this comment

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

Yup, and that's fine as well, just wanted to mention my personal preference :P

@AlbertoElias
Copy link

Looks good! I don't think this should break in any way, files and modules haven't changed

@rowanmanning rowanmanning merged commit 55c0f18 into master Apr 27, 2016
@rowanmanning rowanmanning deleted the redirect-deprecated-routes branch April 27, 2016 10:32
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.

None yet

2 participants