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.
17 lines
247 B
17 lines
247 B
|
4 years ago
|
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
|
||
|
|
}
|