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

Commit f236de5

Browse files
committed
Revert "Removed unused index.php"
This reverts commit 597a243.
1 parent e0998b7 commit f236de5

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

docker/data/Recipes/problem/recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
"dateModified": "2021-10-30T16:02:47+0000",
2828
"dateCreated": "2021-10-30T16:02:22+0000",
2929
"printImage": false,
30-
"imageUrl": "\/apps\/cookbook\/recipes\/128051\/image?size=full"
30+
"imageUrl": "\/index.php\/apps\/cookbook\/recipes\/128051\/image?size=full"
3131
}

lib/src/services/authentication_provider.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class AuthenticationProvider {
168168
String basicAuth,
169169
bool isSelfSignedCertificate,
170170
) async {
171-
String urlAuthCheck = serverUrl + '/apps/cookbook/api/v1/categories';
171+
String urlAuthCheck =
172+
serverUrl + '/index.php/apps/cookbook/api/v1/categories';
172173

173174
dio.Response response;
174175
try {

lib/src/services/categories_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CategoriesProvider {
1111
UserRepository().getCurrentAppAuthentication();
1212

1313
final String url =
14-
"${appAuthentication.server}/apps/cookbook/api/v1/categories";
14+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/categories";
1515

1616
// Parse categories
1717
try {

lib/src/services/category_recipes_short_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CategoryRecipesShortProvider {
1919
? "_"
2020
: category; // Mapping from * to _ for recipes without a category!
2121
url =
22-
"${appAuthentication.server}/apps/cookbook/api/v1/category/$category";
22+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/category/$category";
2323
}
2424

2525
// Parse categories

lib/src/services/recipe_provider.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RecipeProvider {
1212
UserRepository().getCurrentAppAuthentication();
1313

1414
final String url =
15-
"${appAuthentication.server}/apps/cookbook/api/v1/recipes/$id";
15+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes/$id";
1616
// Parse categories
1717
try {
1818
String contents = await Network().get(url);
@@ -29,7 +29,7 @@ class RecipeProvider {
2929

3030
try {
3131
final String url =
32-
"${appAuthentication.server}/apps/cookbook/api/v1/recipes/${recipe.id}";
32+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes/${recipe.id}";
3333
var response = await client.put(url,
3434
data: recipe.toJson(),
3535
options: new Options(
@@ -50,7 +50,7 @@ class RecipeProvider {
5050

5151
try {
5252
var response = await client.post(
53-
"${appAuthentication.server}/apps/cookbook/api/v1/recipes",
53+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes",
5454
data: recipe.toJson(),
5555
options: new Options(
5656
contentType: "application/json;charset=UTF-8",
@@ -68,7 +68,7 @@ class RecipeProvider {
6868

6969
try {
7070
var response = await client.post(
71-
"${appAuthentication.server}/apps/cookbook/api/v1/import",
71+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/import",
7272
data: {"url": url},
7373
options: new Options(
7474
contentType: "application/json;charset=UTF-8",

lib/src/services/recipes_short_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class RecipesShortProvider {
1010
AppAuthentication appAuthentication =
1111
UserRepository().getCurrentAppAuthentication();
1212

13-
final String url = "${appAuthentication.server}/apps/cookbook/api/v1/recipes";
13+
final String url = "${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes";
1414
try {
1515
String contents = await Network().get(url);
1616
return RecipeShort.parseRecipesShort(contents);

lib/src/services/version_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class VersionProvider {
1414
UserRepository().getCurrentAppAuthentication();
1515

1616
var response = await appAuthentication.authenticatedClient
17-
.get("${appAuthentication.server}/apps/cookbook/api/version");
17+
.get("${appAuthentication.server}/index.php/apps/cookbook/api/version");
1818

1919
if (response.statusCode == 200 &&
2020
!response.data.toString().startsWith("<!DOCTYPE html>")) {

lib/src/widget/authentication_cached_network_recipe_image.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AuthenticationCachedNetworkRecipeImage extends StatelessWidget {
2828

2929
return AuthenticationCachedNetworkImage(
3030
url:
31-
'${appAuthentication.server}/apps/cookbook/api/v1/recipes/$recipeId/image?size=$settings',
31+
'${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes/$recipeId/image?size=$settings',
3232
width: width,
3333
height: height,
3434
boxFit: boxFit,

0 commit comments

Comments
 (0)