Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tank
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
tank
Commits
4f744a38
Verified
Commit
4f744a38
authored
1 year ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
fix: try not to break things
parent
89fa7949
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/v1/utils.go
+9
-5
9 additions, 5 deletions
api/v1/utils.go
with
9 additions
and
5 deletions
api/v1/utils.go
+
9
−
5
View file @
4f744a38
...
...
@@ -35,11 +35,15 @@ func idFromString(s string) (uint64, error) {
}
func
getShowID
(
c
*
gin
.
Context
)
(
uint64
,
error
)
{
//// TODO: get rid of this when we remove the nested routes
//showID := c.Param("show-id")
//if showID == "" {
// showID = c.Query("showId")
//}
// TODO: get rid of this when we remove the nested routes
showID
:=
c
.
Param
(
"show-id"
)
if
showID
==
""
{
showID
=
c
.
Query
(
"showId"
)
}
if
showID
==
""
{
return
idFromString
(
showID
)
}
// read the showId as JSON from the body and allow the body to be read again
var
showId
ShowId
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment