Skip to content

Commit

Permalink
upd_1
Browse files Browse the repository at this point in the history
  • Loading branch information
Popug-s-catcher committed Nov 12, 2024
1 parent 9cc7d82 commit bf0acae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions client/src/serviceFiles/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ export let warehousesInit = [
cells: [1, 3211, 10]
}
]
export const SIGN_IN_URL = "http://warehouse2:8080/Users/auth"
export const GET_ALL_CELLS_URL = "http://warehouse2:8080/Cells/all"
export const SIGN_IN_URL = "http://localhost:8080/Users/auth"
export const GET_ALL_CELLS_URL = "http://localhost:8080/Cells/all"
export const GET_MY_CELLS_URL = ""
export const GET_FREE_CELLS_URL = ""
export const POST_NEW_CELL_URL = "http://warehouse2:8080/Cells/new"
export const GET_ALL_EVENTS_URL = "http://warehouse2:8080/Events/all"
export const POST_NEW_CELL_URL = "http://localhost:8080/Cells/new"
export const GET_ALL_EVENTS_URL = "http://localhost:8080/Events/all"
export const POST_NEW_EVENT_URL = ""
export const GET_ALL_USERS_URL = "http://warehouse2:8080/Users/all"
export const POST_NEW_USER_URL = "http://warehouse2:8080/Users/new"
export const GET_ALL_WAREHOUSES_URL = "http://warehouse2:8080/Warehouses/all"
export const POST_NEW_WAREHOUSE_URL = "http://warehouse2:8080/Warehouses/new"
export const GET_ALL_USERS_URL = "http://localhost:8080/Users/all"
export const POST_NEW_USER_URL = "http://localhost:8080/Users/new"
export const GET_ALL_WAREHOUSES_URL = "http://localhost:8080/Warehouses/all"
export const POST_NEW_WAREHOUSE_URL = "http://localhost:8080/Warehouses/new"
2 changes: 1 addition & 1 deletion server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var app = builder.Build();

app.UseCors(builder => builder.WithOrigins("http://localhost:3000").AllowAnyHeader().AllowAnyMethod());
app.UseCors(builder => builder.WithOrigins("http://localhost:3000").AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
Expand Down
2 changes: 1 addition & 1 deletion server/test_data/users_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"_key": "029e65bb-bf7d-43ba-8efe-4d4a4478ffbf",
"nameSurnamePatronymic": "Goga Yelin Boo",
"role": "employee",
"login": "bogatyr",
"login": "bogatyr@gmail.com",
"password": "glaz-uslada",
"birthday": "20.09.2003",
"regDate": "2024-11-12T05:12:09.2289011+03:00",
Expand Down

0 comments on commit bf0acae

Please sign in to comment.