Static files now served; auth is broken

This commit is contained in:
Daniel J. Summers
2018-03-24 13:37:18 -05:00
parent 59b5574b16
commit 9637b38a3f
3 changed files with 28 additions and 3 deletions

View File

@@ -21,9 +21,20 @@ type Routes []Route
var routes = Routes{
Route{
"Journal",
"GET",
"/api/journal",
http.MethodGet,
"/api/journal/",
journal,
false,
},
// keep this route last
Route{
"StaticFiles",
http.MethodGet,
"/*",
staticFiles,
true,
},
}
// ClientPrefixes is a list of known route prefixes handled by the Vue app.
var ClientPrefixes = []string{"/answered", "/journal", "/user"}