Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #381 from multinet-app/add-prefix
Browse files Browse the repository at this point in the history
Add /api prefix to user endpoints
  • Loading branch information
jjnesbitt committed May 14, 2020
2 parents 950f476 + f47b374 commit 2e1856c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multinet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def create_app(config: Optional[MutableMapping] = None) -> Flask:
app.register_blueprint(downloaders.csv.bp, url_prefix="/api")
app.register_blueprint(downloaders.d3_json.bp, url_prefix="/api")

app.register_blueprint(auth.bp, url_prefix="/user")
app.register_blueprint(google.bp, url_prefix="/user/oauth/google")
app.register_blueprint(auth.bp, url_prefix="/api/user")
app.register_blueprint(google.bp, url_prefix="/api/user/oauth/google")

google.init_oauth(app)
register_legacy_workspaces()
Expand Down

0 comments on commit 2e1856c

Please sign in to comment.