Skip to content

Restructure API constants

Changes

  • Move API routes from Common/constants/api_constants.dart to api_helper.dart files in the respective module directories:

    • Modules/QAndA/api_helper.dart
    • Reward/Helpers/api_helper.dart

    api_constants.dart now only contains base URLs and simple routes for core features such as the homescreen, profile and timeline.

  • New helper functions to assemble routes with IDs in the API helper instead of the HTTP call

Closes #146 (closed)

Edited by Robert Palm

Merge request reports