mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-11-27 02:25:41 +00:00
thinking about how to do a stand alone web server
This commit is contained in:
parent
ff0998af4c
commit
9cc9b88d26
1 changed files with 7 additions and 4 deletions
|
@ -1,13 +1,16 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
"github.com/vbatts/imgsrv/config"
|
||||||
"github.com/vbatts/imgsrv/dbutil"
|
"github.com/vbatts/imgsrv/dbutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Web struct {
|
type Web struct {
|
||||||
Router *mux.Router
|
Router *mux.Router
|
||||||
Store dbutil.Util
|
Store dbutil.Util
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func New(c config.Config) *Web {
|
||||||
|
return &Web{}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue