Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #115 from alphagov/bugfix-redirect-root-to-admin
Browse files Browse the repository at this point in the history
Redirect root URL to login screen
  • Loading branch information
jabley committed Jul 5, 2013
2 parents 9e90c73 + 743c5d2 commit 62e009e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backdrop/write/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from os import getenv

from flask import Flask, request, jsonify, g
from flask import Flask, request, jsonify, g, redirect, url_for
from backdrop import statsd
from backdrop.core.bucket import Bucket
from backdrop.core.log_handler \
Expand Down Expand Up @@ -71,7 +71,7 @@ def exception_handler(e):

@app.route("/", methods=['GET'])
def index():
return "write.backdrop root path."
return redirect(url_for('user_route'))


@app.route('/_status', methods=['GET'])
Expand Down

0 comments on commit 62e009e

Please sign in to comment.