Allow CORS origins

This commit is contained in:
Martin Pander
2022-11-08 11:01:31 +01:00
parent 8a78711727
commit 82f062b831
7 changed files with 36 additions and 35 deletions

View File

@ -48,13 +48,13 @@ func (s *DefaultApiService) GetJournalEntryForDate(ctx context.Context, date str
return Response(http.StatusNotImplemented, nil), errors.New("GetJournalEntryForDate method not implemented")
}
// WriteJournalEntryForDate -
func (s *DefaultApiService) WriteJournalEntryForDate(ctx context.Context, date string, journalEntry JournalEntry) (ImplResponse, error) {
// TODO - update WriteJournalEntryForDate with the required logic for this service method.
// WriteJournalEntry -
func (s *DefaultApiService) WriteJournalEntry(ctx context.Context, journalEntry JournalEntry) (ImplResponse, error) {
// TODO - update WriteJournalEntry with the required logic for this service method.
// Add api_default_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
//TODO: Uncomment the next line to return response Response(200, {}) or use other options such as http.Ok ...
//return Response(200, nil),nil
return Response(http.StatusNotImplemented, nil), errors.New("WriteJournalEntryForDate method not implemented")
return Response(http.StatusNotImplemented, nil), errors.New("WriteJournalEntry method not implemented")
}