Typo in routers/api/v1/org/org.go #2691

Closed
opened 2025-11-02 04:44:38 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @shashvat-kedia on GitHub (Dec 26, 2018).

  • Gitea version (or commit ref): 4586ae390f
  • Git version: Not relevant
  • Operating system: Not relevant
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

There is a typo in routers/api/v1/org/org.go due to which the templates/swagger/v1_json.tmpl generated shows a route GET /user/{username}/orgs while no such route exists as can be seen from the screenshot. The actual root is GET /users/{username}/orgs.

Screenshots

screenshot 2018-12-26 at 10 47 23 am
Originally created by @shashvat-kedia on GitHub (Dec 26, 2018). - Gitea version (or commit ref): 4586ae390feb18d11f6995aca420fb12e0e591ba - Git version: Not relevant - Operating system: Not relevant - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant ## Description There is a typo in `routers/api/v1/org/org.go` due to which the `templates/swagger/v1_json.tmpl` generated shows a route `GET /user/{username}/orgs` while no such route exists as can be seen from the screenshot. The actual root is `GET /users/{username}/orgs`. ## Screenshots <img width="1440" alt="screenshot 2018-12-26 at 10 47 23 am" src="https://user-images.githubusercontent.com/22047421/50433014-ab951b00-08fb-11e9-9902-01f5b9f0c1bd.png">
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2691