-
Notifications
You must be signed in to change notification settings - Fork 79
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
Restructure application routing #1141
base: develop
Are you sure you want to change the base?
Conversation
from OpenOversight.app.utils.forms import set_dynamic_default | ||
from OpenOversight.app.utils.general import validate_redirect_url | ||
|
||
|
||
auth = Blueprint("auth", __name__, url_prefix="/auth") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like the url_prefix
belongs with the creation of the Blueprint, but I'd be happy to shift it back to the application's __init__.py
file if everyone else would prefer that.
# Ensure the file is read/write by the creator only | ||
SAVED_UMASK = os.umask(0o077) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't used anywhere in views.py
.
Fixes issue
Sets the groundwork for this issue: #385
Description of Changes
Simplifying the import logic for the
auth
andmain
routes of the application. This also sets up the work for this PR: #1138Tests and Linting
develop
branch.pytest
passes on my local development environment.pre-commit
passes on my local development environment.