Making node respond as ipfs.io when getting files

Hi all! I’ve set up an ipfs node on AWS, and expose a public IP to allow third party apps to contact the REST API server (only for get/post requests) linked to our node (this is just an early stage choice).
Well my question is pretty simple but I don’t know if the answer will be as well.
Suppose that I add a file to ipfs and later want to cat it.
Actually, what I can do is using the following query:

ipfs.desmos.network/api/v0/cat?arg=#hash

but I see that from ipfs.io, files can be retrieved as follow:

ipfs.io-ipfs-#hash

(i’m using - instead of / cause i’m a new user and I can’t post two links)

My question is, Can I set up the node to do the same things done with ipfs.io?
Is that a pre built feature? Or it is some mid-layer?
Thanks to everyone who will answer in advance!

Hi,

the go-ipfs daemon runs two things: one API (on tcp/5001 normally, with /api/v0/… endpoints) and one Gateway (on tcp/8080 normally). ipfs.io is exposing the gateway part of it, which understands the /ipfs/hash paths.