api icon indicating copy to clipboard operation
api copied to clipboard

`POST /configs/origin` does not normalize the hostname

Open zomglings opened this issue 2 years ago • 1 comments

If you add a new origin https://<host>/ and then look up https://<host> (no trailing slash) on /configs/is_origin, you get the response:

{"origin":null,"updated_at":null,"created_at":null}

We should normalize all new origins when they are added to the API to remove trailing slashes.

zomglings avatar Sep 05 '23 19:09 zomglings

Also we need to allow duplication of resources. And make is_origin authentificated.

kompotkot avatar Sep 05 '23 20:09 kompotkot