Skip to content

Commit 0b76e25

Browse files
committed
Removed templates and endpoints that are no longer needed
1 parent 6695350 commit 0b76e25

File tree

3 files changed

+2
-62
lines changed

3 files changed

+2
-62
lines changed

src/murfey/server/api/session_info.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
from typing import Dict, List, Optional
55

66
from fastapi import APIRouter, Depends, Request
7-
from fastapi.responses import FileResponse, HTMLResponse
7+
from fastapi.responses import FileResponse
88
from pydantic import BaseModel
99
from sqlalchemy import func
1010
from sqlmodel import select
1111
from werkzeug.utils import secure_filename
1212

13-
import murfey
1413
import murfey.server.api.websocket as ws
1514
from murfey.server import _transport_object
1615
from murfey.server.api import templates
@@ -32,12 +31,7 @@
3231
from murfey.server.ispyb import get_all_ongoing_visits
3332
from murfey.server.murfey_db import murfey_db
3433
from murfey.util import sanitise
35-
from murfey.util.config import (
36-
MachineConfig,
37-
get_hostname,
38-
get_machine_config,
39-
get_microscope,
40-
)
34+
from murfey.util.config import MachineConfig, get_machine_config
4135
from murfey.util.db import (
4236
ClientEnvironment,
4337
DataCollection,
@@ -64,20 +58,6 @@
6458
)
6559

6660

67-
# This will be the homepage for a given microscope.
68-
@router.get("/", response_class=HTMLResponse)
69-
async def root(request: Request):
70-
return templates.TemplateResponse(
71-
request=request,
72-
name="home.html",
73-
context={
74-
"hostname": get_hostname(),
75-
"microscope": get_microscope(),
76-
"version": murfey.__version__,
77-
},
78-
)
79-
80-
8161
@router.get("/health/")
8262
def health_check(db=ispyb_db):
8363
conn = db.connection()

src/murfey/templates/home.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/murfey/templates/visit.html

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)