rename ngin to rest

This commit is contained in:
kevin
2020-07-31 11:14:48 +08:00
parent e133ffd820
commit 0897f60c5d
78 changed files with 118 additions and 111 deletions

View File

@@ -3,7 +3,7 @@ package handler
import (
"net/http"
"zero/ngin/httpx"
"zero/rest/httpx"
)
type (

View File

@@ -3,11 +3,11 @@ package handler
import (
"net/http"
"zero/ngin"
"zero/rest"
)
func RegisterHandlers(engine *ngin.Engine) {
engine.AddRoutes([]ngin.Route{
func RegisterHandlers(engine *rest.Engine) {
engine.AddRoutes([]rest.Route{
{
Method: http.MethodGet,
Path: "/",