---
title: "Fetch a file from the filesystem"
method: GET
path: "/{path}"
---

# Fetch a file from the filesystem

`GET /{path}`

Fetch a file from the filesystem. If the file is a directory, a index.html is returned, if it exists.

## Path parameters

- `path` string, required

## Response `200`

OK

- string, binary

## Other responses

- `301` — Moved Permanently
- `404` — Not Found

## Changes

- **2022-05-13** `d0614126abfa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/datarhei/apis/datarhei-core-api/changes/:path/get.md)

---

[API](https://skmtc.dev/datarhei/apis/datarhei-core-api.md) · [All operations](https://skmtc.dev/datarhei/apis/datarhei-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datarhei/datarhei-core-api/revisions/d0614126abfa/schema)
