feat: add static files simple server
This commit is contained in:
@@ -296,6 +296,57 @@ paths:
|
||||
summary: Get user session
|
||||
tags:
|
||||
- auth
|
||||
/upload:
|
||||
post:
|
||||
description: Upload static content to the server
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/gitea_d3m0k1d_ru_d3m0k1d_d3m0k1d_ru_backend_internal_models.SuccessResponse'
|
||||
"500":
|
||||
description: Internal server error
|
||||
schema:
|
||||
$ref: '#/definitions/gitea_d3m0k1d_ru_d3m0k1d_d3m0k1d_ru_backend_internal_models.ErrorResponse'
|
||||
summary: Upload static content
|
||||
tags:
|
||||
- static
|
||||
/upload/{file}:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Get static content
|
||||
parameters:
|
||||
- description: File name
|
||||
in: path
|
||||
name: file
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Static content
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/gitea_d3m0k1d_ru_d3m0k1d_d3m0k1d_ru_backend_internal_models.SuccessResponse'
|
||||
- properties:
|
||||
data:
|
||||
type: string
|
||||
type: object
|
||||
"404":
|
||||
description: File not found
|
||||
schema:
|
||||
$ref: '#/definitions/gitea_d3m0k1d_ru_d3m0k1d_d3m0k1d_ru_backend_internal_models.ErrorResponse'
|
||||
"500":
|
||||
description: Internal server error
|
||||
schema:
|
||||
$ref: '#/definitions/gitea_d3m0k1d_ru_d3m0k1d_d3m0k1d_ru_backend_internal_models.ErrorResponse'
|
||||
summary: Get static content
|
||||
tags:
|
||||
- static
|
||||
securityDefinitions:
|
||||
Bearer:
|
||||
description: Type "Bearer" followed by a space and the JWT token.
|
||||
|
||||
Reference in New Issue
Block a user