-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
49 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ upload_to_pypi.sh | |
venv | ||
.vscode | ||
.env | ||
secret* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import os | ||
|
||
SIIBRA_TOOLBOX_VIEWER_PLUGIN_STATIC_DIR = os.getenv("SIIBRA_TOOLBOX_VIEWER_PLUGIN_STATIC_DIR") | ||
|
||
HBP_GITLAB_HOST = os.getenv("HBP_GITLAB_HOST") | ||
HBP_GITLAB_TOKEN = os.getenv("HBP_GITLAB_TOKEN") | ||
HBP_GITLAB_PROJECT_ID = os.getenv("HBP_GITLAB_PROJECT_ID") | ||
|
||
CHANNEL = os.getenv("SIIBRA_JURGEX_CELERY_CHANNEL", "siibra_jugex_http") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from fastapi import APIRouter, Request | ||
from fastapi.responses import PlainTextResponse | ||
from fastapi.exceptions import HTTPException | ||
|
||
router = APIRouter() | ||
|
||
# @router.get("/{repo}.git/info/refs") | ||
# def info_refs(): | ||
# return PlainTextResponse( | ||
# """db53a06240ccf01b51eefa3ee348a12e360db2bd\trefs/heads/master""" | ||
# ) | ||
|
||
# @router.get("/{repo}.git/HEAD") | ||
# def head(): | ||
# return PlainTextResponse( | ||
# """ref: refs/heads/master\n""" | ||
# ) | ||
|
||
# @router.get("/objects/{head}/{rest}") | ||
# def get_obj(): | ||
# print("foo") | ||
# raise HTTPException(404) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters