dummy-image-server
v1.0.2
Published
1: Create a public folder in the root directory.
Downloads
4
Readme
1: Create a public folder in the root directory.
2: If you want to get one single file, put it in public folder root and give the url as localhost:4000/file/< filename >
3: If you want to get a random file each time, upload your folder in public folder and give the url as localhost:4000/list/< foldername >
4: In either case, if you want to add a delay to your response append the query param, delay=1000
Example: localhost:4000/file/testimage.jpg?delay=1000 => this will look for file called testimage.jpg inside public folder and return it with a delay of 1000ms.
Example: localhost:4000/list/testimages?delay=2000 => this will look for a folder called testimages inside public folder and return files randomly from it with a delay of 2000ms.