1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| package router
|
| import (
| "andriodServer/controllers"
| "github.com/gin-gonic/gin"
| )
|
| func NewRouter() *gin.Engine {
| r := gin.Default()
| esC := new (controllers.EsController)
| esApi := r.Group("/basic/api/androidAlarm/es")
| {
| esApi.GET("/:id", esC.GetEsVideoById)
| }
| return r
| }
|
|