back-end

时间:2021-03-26 13:43:35
【文件属性】:
文件名称:back-end
文件大小:86KB
文件格式:ZIP
更新时间:2021-03-26 13:43:35
JavaScript 后端 服务器站点: 登记 POST“ ” 成功的回应 状态:201 JSON:{“ message”:“注册成功!” ) 必填字段 用户名(字符串) 密码(字符串) 登录 POST“ ” 成功的回应 状态:200 JSON:{“ message”:“登录成功!”,令牌} 必填字段 用户名(字符串) 密码(字符串) 获取所有文章 获取https://pintereach-1.herokuapp.com/api/articles 授权:令牌 通过ID获取文章 GET https://pintereach-1.herokuapp.com/api/articles/:id (文章ID) 标头 授权:令牌 获取用户文章 -获取https://pintereach-1.herokuapp.com/api/articles/user/:id (用户ID) 标头 授权:令牌
【文件预览】:
back-end-master
----.gitignore(13B)
----README.md(1KB)
----knexfile.js(1009B)
----LICENSE(1KB)
----api()
--------server.js(680B)
--------server.spec.js(644B)
----package.json(928B)
----index.js(179B)
----config()
--------vars.js(74B)
----articles()
--------articles-router.js(3KB)
--------articles-router.spec.js(2KB)
--------articles-model.js(1008B)
----data()
--------migrations()
--------test.db3(28KB)
--------dbConfig.js(178B)
--------pintereach.db3(40KB)
--------seeds()
----auth()
--------auth-middleware.js(645B)
--------auth-router.js(2KB)
--------auth-router.spec.js(918B)
----users()
--------users-model.js(906B)
--------users-router.js(1KB)
--------users-service.js(148B)
--------users.test.js(2KB)
----package-lock.json(262KB)

网友评论

相关文章