mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 12:41:54 +03:00
Fix file format name in API
This commit is contained in:
@@ -110,7 +110,7 @@ func FormatFromRest(format []openapi.Format) []entity.Format {
|
||||
case openapi.FormatHeaders:
|
||||
formats[i] = entity.FormatHeaders
|
||||
|
||||
case openapi.FormatSinglePage:
|
||||
case openapi.FormatSingleFile:
|
||||
formats[i] = entity.FormatSingleFile
|
||||
}
|
||||
}
|
||||
@@ -124,7 +124,7 @@ func FormatToRest(format entity.Format) openapi.Format {
|
||||
case entity.FormatPDF:
|
||||
return openapi.FormatPdf
|
||||
case entity.FormatSingleFile:
|
||||
return openapi.FormatSinglePage
|
||||
return openapi.FormatSingleFile
|
||||
case entity.FormatHeaders:
|
||||
return openapi.FormatHeaders
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user