初始化项目文件
This commit is contained in:
12
api_iris/service/api/weatherExport.go
Normal file
12
api_iris/service/api/weatherExport.go
Normal file
@ -0,0 +1,12 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/kataras/iris/v12"
|
||||
"main/jwtSet"
|
||||
)
|
||||
|
||||
func Weather(p iris.Party) {
|
||||
p.Get("/", jwtSet.Jwt.Serve, getWeather)
|
||||
p.Get("/location", getLocation)
|
||||
p.Get("/test", testWeather)
|
||||
}
|
Reference in New Issue
Block a user