Skip to content

Commit d243db9

Browse files
move static to src/
1 parent 8959d18 commit d243db9

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed

src/server/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def rate_limit_exception_handler(request: Request, exc: Exception) -> Resp
156156
app.add_exception_handler(RateLimitExceeded, rate_limit_exception_handler)
157157

158158
# Mount static files to serve CSS, JS, and other static assets
159-
app.mount("/server/static", StaticFiles(directory="server/static"), name="static")
159+
app.mount("/static", StaticFiles(directory="static"), name="static")
160160

161161
# Set up API analytics middleware if an API key is provided
162162
if app_analytics_key := os.getenv("API_ANALYTICS_KEY"):
@@ -235,7 +235,7 @@ async def robots() -> FileResponse:
235235
FileResponse
236236
The `robots.txt` file located in the static directory.
237237
"""
238-
return FileResponse("server/static/robots.txt")
238+
return FileResponse("static/robots.txt")
239239

240240

241241
# Include routers for modular endpoints

src/server/templates/base.jinja

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<link rel="icon" type="image/x-icon" href="/server/static/favicon.ico">
6+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
77
<!-- Search Engine Meta Tags -->
88
<meta name="description"
99
content="Replace 'hub' with 'ingest' in any GitHub URL for a prompt-friendly text.">
1010
<meta name="keywords"
1111
content="Gitingest, AI tools, LLM integration, Ingest, Digest, Context, Prompt, Git workflow, codebase extraction, Git repository, Git automation, Summarize, prompt-friendly">
1212
<meta name="robots" content="index, follow">
1313
<!-- Favicons -->
14-
<link rel="icon" type="image/svg+xml" href="/server/static/favicon.svg">
14+
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
1515
<link rel="icon"
1616
type="image/png"
1717
sizes="64x64"
18-
href="/server/static/favicon-64.png">
18+
href="/static/favicon-64.png">
1919
<link rel="apple-touch-icon"
2020
sizes="180x180"
21-
href="/server/static/apple-touch-icon.png">
21+
href="/static/apple-touch-icon.png">
2222
<!-- Web App Meta -->
2323
<meta name="apple-mobile-web-app-title" content="Gitingest">
2424
<meta name="application-name" content="Gitingest">
@@ -31,12 +31,12 @@
3131
content="Replace 'hub' with 'ingest' in any GitHub URL for a prompt-friendly text.">
3232
<meta property="og:type" content="website">
3333
<meta property="og:url" content="{{ request.url }}">
34-
<meta property="og:image" content="/server/static/og-image.png">
34+
<meta property="og:image" content="/static/og-image.png">
3535
<title>
3636
{% block title %}Gitingest{% endblock %}
3737
</title>
3838
<script src="https://cdn.tailwindcss.com"></script>
39-
<script src="/server/static/js/utils.js"></script>
39+
<script src="/static/js/utils.js"></script>
4040
{% block extra_head %}{% endblock %}
4141
</head>
4242
<body class="bg-[#FFFDF8] min-h-screen flex flex-col">

0 commit comments

Comments
 (0)