Skip to content

Commit

Permalink
Remove route to frontend and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Aug 4, 2024
1 parent 9a292ae commit 1cced03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This fork of the SMART Launcher has been slightly modified to be used as a proxy
It was used to support the launching of [Smart Forms](https://github.com/aehrc/smart-forms), a FHIR questionnaire rendering SMART app from a [EHR simulator](https://github.com/aehrc/smart-ehr-launcher) for demo and testing purposes.
Leveraging the existing internals of the SMART Launcher provides a way to indirectly enable the SMART App Launch functionality on top of any FHIR server, notably [HAPI](https://github.com/hapifhir/hapi-fhir-jpaserver-starter) in Smart Form's use case.

This proxy component is only tested on open servers so far, and it is not guaranteed to work with servers that require authorisation.

A live demo app is available at: https://ehr.smartforms.io

### Fork changes
Expand Down
3 changes: 0 additions & 3 deletions backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import authServer from "./routes/auth"
import launcher from "./routes/launcher"
import pkg from "../package.json"
import { globalErrorHandler, ipBlackList } from "./middlewares"
import { isValidURL } from "./lib";

export let customisedFhirServerR4 = ""

Expand All @@ -26,8 +25,6 @@ app.use(cors({ origin: true, credentials: true }))
// Block some IPs
app.use(ipBlackList(process.env.IP_BLACK_LIST || ""));

app.use(express.static(Path.join(__dirname, '../build/')));

app.get("/smart-style.json", (_, res) => {
res.json({
color_background : "#edeae3",
Expand Down

0 comments on commit 1cced03

Please sign in to comment.