Switched to vestigo router

Also moved db reference to data module; it now starts, but doesn't serve index.html for root yet
This commit is contained in:
Daniel J. Summers
2018-03-22 22:11:38 -05:00
parent b248f7ca7f
commit 59b5574b16
5 changed files with 43 additions and 52 deletions

View File

@@ -1,12 +1,16 @@
// Package routes contains endpoint handlers for the myPrayerJournal API.
package routes
import (
"net/http"
)
// Route is a route served in the application.
type Route struct {
Name string
Method string
Pattern string
Func DBHandler
Func http.HandlerFunc
IsPublic bool
}