Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
bc22d5a3
Commit
bc22d5a3
authored
Nov 15, 2023
by
Michael Yang
Browse files
no blob response
parent
71d71d09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
api/types.go
api/types.go
+0
-4
server/routes.go
server/routes.go
+2
-2
No files found.
api/types.go
View file @
bc22d5a3
...
@@ -105,10 +105,6 @@ type CreateRequest struct {
...
@@ -105,10 +105,6 @@ type CreateRequest struct {
Stream
*
bool
`json:"stream,omitempty"`
Stream
*
bool
`json:"stream,omitempty"`
}
}
type
CreateBlobResponse
struct
{
Path
string
`json:"path"`
}
type
DeleteRequest
struct
{
type
DeleteRequest
struct
{
Name
string
`json:"name"`
Name
string
`json:"name"`
}
}
...
...
server/routes.go
View file @
bc22d5a3
...
@@ -662,7 +662,7 @@ func HeadBlobHandler(c *gin.Context) {
...
@@ -662,7 +662,7 @@ func HeadBlobHandler(c *gin.Context) {
return
return
}
}
c
.
JSON
(
http
.
StatusOK
,
api
.
CreateBlobResponse
{
Path
:
path
}
)
c
.
Status
(
http
.
StatusOK
)
}
}
func
CreateBlobHandler
(
c
*
gin
.
Context
)
{
func
CreateBlobHandler
(
c
*
gin
.
Context
)
{
...
@@ -701,7 +701,7 @@ func CreateBlobHandler(c *gin.Context) {
...
@@ -701,7 +701,7 @@ func CreateBlobHandler(c *gin.Context) {
return
return
}
}
c
.
JSON
(
http
.
Status
OK
,
api
.
CreateBlobResponse
{
Path
:
targetPath
}
)
c
.
Status
(
http
.
Status
Created
)
}
}
var
defaultAllowOrigins
=
[]
string
{
var
defaultAllowOrigins
=
[]
string
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment