---
id: serving-static-files
title: "Serving Static Files Example"
sidebar_label: "Serving Static Files"
---

## Serving Static Files

```scala mdoc:passthrough
import utils._

printSource("zio-http-example/src/main/scala/example/StaticFiles.scala")
```

## Serving Static Resource Files

```scala mdoc:passthrough
import utils._

printSource("zio-http-example/src/main/scala/example/StaticServer.scala")
```
