perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

How to serve static files and use other routes at the same time ? #1041

Closed Peng-YM closed 5 years ago

Peng-YM commented 5 years ago

I want to use a single server to serve static files and handle other api requests at the same time. Is it possible?

perwendel commented 5 years ago

Yes, check the documentation!