chore: more work on moving to svelte front end
This commit is contained in:
3
main.go
3
main.go
@@ -31,7 +31,7 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
defer db.Close()
|
||||
log.Info("Starting server on :8000!")
|
||||
log.Info("Starting server on :5002!")
|
||||
|
||||
//TODO check if file structure exists to save data
|
||||
handle := NewHandler(db)
|
||||
@@ -48,6 +48,7 @@ func main() {
|
||||
handle.StaticFiles("/js/", ".js", "text/javascript")
|
||||
handle.ReadFiles("/imgs/", "views", ".png", "image/png;")
|
||||
handle.ReadTypesFiles("/savedData/", ".", []string{".png", ".jpeg"}, []string{"image/png", "image/jpeg"})
|
||||
handle.ReadTypesFiles("/api/savedData/", ".", []string{".png", ".jpeg"}, []string{"image/png", "image/jpeg"})
|
||||
|
||||
handle.GetHTML("/", AnswerTemplate("index.html", nil, 0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user