diff options
author | Joar Wandborg <git@wandborg.com> | 2012-10-14 13:46:31 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2012-10-14 13:46:31 +0200 |
commit | 7742dcc1fbda04c3a1c76a057a1a93a8f504502e (patch) | |
tree | 6b07eb54c43230d0810d9241df02558a88cd754e /mediagoblin/webfinger/routing.py | |
parent | a817fb76b1a9f6412cd36ddbef8a9f7a35cb6615 (diff) | |
download | mediagoblin-7742dcc1fbda04c3a1c76a057a1a93a8f504502e.tar.lz mediagoblin-7742dcc1fbda04c3a1c76a057a1a93a8f504502e.tar.xz mediagoblin-7742dcc1fbda04c3a1c76a057a1a93a8f504502e.zip |
Switched most stuff over from Routes
Removed the Routes routing functionality and replaced it with
werkzeug.routes. Most views are functional.
Known issues:
- Translation integration with the request object is not yet figured
out. This breaks 404 pages.
Diffstat (limited to 'mediagoblin/webfinger/routing.py')
-rw-r--r-- | mediagoblin/webfinger/routing.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mediagoblin/webfinger/routing.py b/mediagoblin/webfinger/routing.py index 7e84a00a..18f9eb02 100644 --- a/mediagoblin/webfinger/routing.py +++ b/mediagoblin/webfinger/routing.py @@ -14,12 +14,10 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from routes.route import Route +from mediagoblin.routing import add_route -webfinger_well_known_routes = [ - Route('mediagoblin.webfinger.host_meta', '/host-meta', - controller='mediagoblin.webfinger.views:host_meta')] +add_route('mediagoblin.webfinger.host_meta', '/.well-known/host-meta', + 'mediagoblin.webfinger.views:host_meta') -webfinger_routes = [ - Route('mediagoblin.webfinger.xrd', '/xrd', - controller='mediagoblin.webfinger.views:xrd')] +add_route('mediagoblin.webfinger.xrd', '/webfinger/xrd', + 'mediagoblin.webfinger.views:xrd') |