Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Oct 9, 2023
1 parent 4d1518b commit 1d6f944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rogue_scholar_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
from typing import Optional
from quart import Quart, request, jsonify, redirect
from quart_schema import QuartSchema, Info, validate_request, validate_response
from quart_schema import QuartSchema, Info, validate_request, validate_response, hide

from rogue_scholar_api.supabase import (
supabase_client as supabase,
Expand All @@ -25,11 +25,13 @@ def run() -> None:


@app.route("/")
@hide
def default():
return redirect("https://rogue-scholar.org", code=301)


@app.route("/blogs/")
@hide
async def blogs_redirect():
return redirect("/blogs", code=301)

Expand Down Expand Up @@ -65,6 +67,7 @@ async def blog(slug):


@app.route("/posts/")
@hide
async def posts_redirect():
return redirect("/posts", code=301)

Expand Down

0 comments on commit 1d6f944

Please sign in to comment.