framework1/route.go

16 lines
395 B
Go
Raw Permalink Normal View History

2024-10-16 16:53:09 +08:00
package main
import "framework1/framework"
func registerRouter(core *framework.Core) {
core.Get("/user/login", UserLoginController)
subjectGroup := core.Group("/subject")
{
subjectGroup.Delete("/:id", SubjectDelController)
subjectGroup.Put("/:id", SubjectUpdateController)
subjectGroup.Get("/:id", SubjectUpdateController)
subjectGroup.Get("/list/all", SubjectListController)
}
}