You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
247 B
16 lines
247 B
package service
|
|
|
|
import (
|
|
"main_exam_server/route"
|
|
|
|
"github.com/codegangsta/negroni"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func NewServer() *negroni.Negroni {
|
|
n := negroni.Classic()
|
|
m := mux.NewRouter()
|
|
route.InitRoute(m)
|
|
n.UseHandler(m)
|
|
return n
|
|
}
|
|
|