M
M
Maxim2015-05-06 20:37:21
JavaScript
Maxim, 2015-05-06 20:37:21

How to make a router with normal json return in gulp-connect?

I was looking for information on the issue, but somehow not that. I need to write a mini api server in the gulp-connect task that would give some json. Tell me, please, how to do this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kostik, 2015-05-06
@kostiknoir

There is a middleware parameter

M
Mikhail Osher, 2015-05-06
@miraage

Create these json files and serve from documentroot.
https://www.npmjs.com/package/gulp-connect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question