Commit 4062ea51 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

timber: xkoha -> koha

parent 0ae4c65e
......@@ -179,7 +179,7 @@ module.exports = (app) => {
app.get("/api/v1/profile/favourites", async (request, response) => {
try {
const res = await fetch(`http://xkoha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`)
const res = await fetch(`http://koha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`)
if (res.status === 200) {
const json = await res.json()
response.send(json)
......@@ -197,7 +197,7 @@ module.exports = (app) => {
const favourite = {
id: request.body.id
}
const res = await fetch(`http://xkoha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`, {
const res = await fetch(`http://koha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`, {
method: "DELETE",
headers: {
"Content-type": "application/json"
......@@ -216,7 +216,7 @@ module.exports = (app) => {
const favourite = {
tag: request.body.tag
}
const res = await fetch(`http://xkoha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`, {
const res = await fetch(`http://koha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`, {
method: "DELETE",
headers: {
"Content-type": "application/json"
......@@ -236,7 +236,7 @@ module.exports = (app) => {
biblionumber: request.body.biblionumber,
tag: request.body.tag
}
const res = await fetch(`http://xkoha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`, {
const res = await fetch(`http://koha:8081/api/v1/patrons/${request.session.borrowerNumber}/favourites`, {
method: "POST",
headers: {
"Content-type": "application/json"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment