Skip to content

Commit

Permalink
Update backend API to api.realworld.io
Browse files Browse the repository at this point in the history
  • Loading branch information
cartonalexandre committed Nov 30, 2022
1 parent 18a9127 commit 7b9d825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/util.imba
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var URL_ENDPOINT="https://conduit.productionready.io/api/"
var URL_ENDPOINT="https://api.realworld.io/api/"

def parseJSON response
return Promise.new(
Expand Down Expand Up @@ -42,4 +42,4 @@ export def formatDate inputDate
return aDate.toLocaleDateString("en-US", options)

export def encode p
return window.encodeURIComponent(p).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+')
return window.encodeURIComponent(p).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+')

0 comments on commit 7b9d825

Please sign in to comment.