rsnext/test/integration/export/pages/api/data.js
Luis Fernando Alvarez D 36aabe05a2 Show warning if next export detects an API route (#8257)
* Throw error if next export detects an api route

* Moved the test to the export tests

* Added missing comma

* Move the API route comment

* Add comma after replace

* Show a warning instead
2019-08-12 00:37:20 +02:00

3 lines
59 B
JavaScript

export default (req, res) => {
res.send('Hello World')
}