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

[New] route for testing locally #341

Merged
merged 70 commits into from
Nov 19, 2019
Merged

[New] route for testing locally #341

merged 70 commits into from
Nov 19, 2019

Conversation

notRealLi
Copy link
Contributor

No description provided.

@notRealLi notRealLi merged commit a7d9f58 into dev Nov 19, 2019
Copy link
Collaborator

@dynamic11 dynamic11 left a comment

Choose a reason for hiding this comment

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

Please see the recommendation

response.redirect('/');
} catch {
response.redirect('/');
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you wrap this around an if statement to check if the env file is saying "dev" not "prod"?
Im pretty dure we have a variable that defines that.

@@ -141,4 +141,4 @@ Route.get('/push', 'TokenController.push').as('push');
Route.get('/loginAD', 'UserController.loginAD').as('loginAD');
Route.get('/authAD', 'UserController.authAD').as('authAD');
Route.get('/key', 'UserController.key').as('key');
Route.get('/test/:id', 'UserController.test').as('test');
Route.get('/test/:id', 'UserController.test');
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can wrap the route around the same condition aswell

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