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

@ -42,7 +42,7 @@ func (s *ApiService) GetJournalEntryForDate(ctx context.Context, date string) (d
}
// WriteJournalEntryForDate -
func (s *ApiService) WriteJournalEntryForDate(ctx context.Context, date string, journalEntry dashapi.JournalEntry) (dashapi.ImplResponse, error) {
func (s *ApiService) WriteJournalEntry(ctx context.Context, journalEntry dashapi.JournalEntry) (dashapi.ImplResponse, error) {
journal := s.mapper.JournalApiToDb(journalEntry)
s.db.WriteJournalEntry(journal)