Simple static file server for single-page application
Go to file
amutake 0c4498ccee Support gzip 2015-01-03 15:01:03 +09:00
README.md Add README 2014-12-30 05:48:44 +09:00
main.go Support gzip 2015-01-03 15:01:03 +09:00

README.md

spa-server

Simple static file server for single-page application

$ tree
.
|-- index.html
`-- assets
    |-- js
    |   `-- main.js
    `-- css
        `-- main.css
$ sap-server 5050
...
$ curl http://localhost:5050/
=> ./index.html
$ curl http://localhost:5050/assets/js/main.js
=> ./assets/js/main.js
$ curl http://localhost:5050/index.html
=> ./index.html
$ curl http://localhost:5050/page1
=> ./index.html
$ curl http://localhost:5050/page2/123
=> ./index.html