nuxt.js write interfaces in order koa2

1, Create users.js interface file (server / interface / users.js)
2, prepared by the interface
3, in the import server introduced, introduction path (server / The index.js)
. 4, introduction route (app.use (in the server users.routes ()). use (users.allowedMethods ()))
. 5, using the test postman

Guess you like

Origin www.cnblogs.com/nayek/p/12535936.html