Golang 的 Gin 框架不支持 Restful风格的路由

Open
#28 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
go

Research direction

The issue describes a conflict between Gin routes /user/default and /user/:username, but names no project files or tests. Start by investigating Gin's routing behavior for these two routes; the issue says there is currently no solution, so the desired change and what counts as done need clarification.

Written by the indexing model from the issue text.

Description

后端开发

像这样的路由是有冲突的

[GET] /user/default
[GET] /user/:username

这样导致URL很难高度自定义, 算是一个坑吧。

目前没有解决方案

Dominant language
No language data
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from axetroy/stackoverflow

All issues in axetroy/stackoverflow

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.