add static route module
This commit is contained in:
18
modules/resources/routes/routes.go
Normal file
18
modules/resources/routes/routes.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"atom/contracts"
|
||||
"atom/providers/http"
|
||||
)
|
||||
|
||||
type Route struct {
|
||||
svc *http.Service
|
||||
}
|
||||
|
||||
func NewRoute(svc *http.Service) contracts.Route {
|
||||
return &Route{svc: svc}
|
||||
}
|
||||
|
||||
func (r *Route) Register() {
|
||||
// r.svc.Engine.Static("/resources/form-generator", "./resources/form-generator")
|
||||
}
|
||||
Reference in New Issue
Block a user