不器小窝 不器小窝
首页
随笔
  • GoLang
  • 前端

    • Vue
    • VuePress
  • 开发工具
  • 系统工具
读吧
  • ToDb (opens new window)
  • goKit (opens new window)
  • 友情链接
  • 免费信息
  • 时间线
  • 关于
GitHub (opens new window)

不器

知行合一
首页
随笔
  • GoLang
  • 前端

    • Vue
    • VuePress
  • 开发工具
  • 系统工具
读吧
  • ToDb (opens new window)
  • goKit (opens new window)
  • 友情链接
  • 免费信息
  • 时间线
  • 关于
GitHub (opens new window)
  • GoLang

    • GoLang 安装
    • Go经验
    • 错误集合
    • 基础库

    • 第三方库

    • Fyne

    • Wails

    • GoFrame

      • Hello GoFrame
      • GoFrame 路由
        • 前言
        • 配置文件
        • 重写路由
      • GoFrame问题集合
      • GoFrame使用jwt
  • Dart

  • Markdown

  • 语言
  • GoLang
  • GoFrame
不器
2022-09-20
目录

GoFrame 路由

# 前言

GoFrame路由配置,鉴于框架早起提供了重写路由的方法,所以即使是更新到当前的最新版本还是用自定义的吧。

# 配置文件

manifest/config/config.yaml

server:
    ...
    routeOverWite: true
    ...
1
2
3
4

# 重写路由

	s := g.Server()
	s.Group(consts.BackgroundUrl, func(group *ghttp.RouterGroup) {
		group.Middleware(adminMiddleware.Middleware().BaseGeneral)
		group.Bind(admin.AdminIndex)
	})
1
2
3
4
5
#GoLang#GoFrame#Router#路由
更新时间: 2023/2/10 09:50:10
Hello GoFrame
GoFrame问题集合

← Hello GoFrame GoFrame问题集合→

最近更新
01
Vue-pure-Admin基础
03-16
02
WebStorm工具使用手册
03-15
03
Windows
03-12
更多文章>
Theme by Vdoing | Copyright © 2022-2023 不器 | 小窝
sitemap icon by Icons8
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式