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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user