Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #154 from prometheus42/develop
Browse files Browse the repository at this point in the history
Update remaining URLs to API version 1.0.
  • Loading branch information
Teifun2 authored Sep 23, 2022
2 parents 4e5b318 + 0ca062d commit e0998b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/src/services/authentication_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class AuthenticationProvider {
String basicAuth,
bool isSelfSignedCertificate,
) async {
String urlAuthCheck = serverUrl + '/apps/cookbook/categories';
String urlAuthCheck = serverUrl + '/apps/cookbook/api/v1/categories';

dio.Response response;
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/services/categories_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CategoriesProvider {
UserRepository().getCurrentAppAuthentication();

final String url =
"${appAuthentication.server}/apps/cookbook/categories";
"${appAuthentication.server}/apps/cookbook/api/v1/categories";

// Parse categories
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/services/category_recipes_short_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CategoryRecipesShortProvider {
UserRepository().getCurrentAppAuthentication();

String url =
"${appAuthentication.server}/index.php/apps/cookbook/category/$category";
"${appAuthentication.server}/apps/cookbook/api/v1/category/$category";
if (androidApiVersion != AndroidApiVersion.BEFORE_API_ENDPOINT) {
category = category == "*"
? "_"
Expand Down
2 changes: 1 addition & 1 deletion lib/src/services/recipe_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class RecipeProvider {

try {
var response = await client.post(
"${appAuthentication.server}/apps/cookbook/import",
"${appAuthentication.server}/apps/cookbook/api/v1/import",
data: {"url": url},
options: new Options(
contentType: "application/json;charset=UTF-8",
Expand Down

0 comments on commit e0998b7

Please sign in to comment.