Add static page routing, place API under /api/

This commit is contained in:
nemunaire 2016-01-13 01:22:01 +01:00
commit d635420a9f
3 changed files with 29 additions and 9 deletions

9
admin/static.go Normal file
View file

@ -0,0 +1,9 @@
package main
import (
"net/http"
)
func StaticRouting(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "./static/index.html")
}