[#39] Add CORS

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-08-05 22:09:19 +03:00 committed by Kirillov Denis
parent 6e01a0ead7
commit d18312ecde
44 changed files with 2613 additions and 148 deletions

View file

@ -432,11 +432,6 @@ func NewBool(val bool) *bool {
return &val
}
// NewError wraps error into models.Error.
func NewError(err error) models.Error {
return models.Error(err.Error())
}
// NewSuccessResponse forms model.SuccessResponse.
func NewSuccessResponse() *models.SuccessResponse {
return &models.SuccessResponse{