# web-2-server **Repository Path**: ai-cxd/web-2-server ## Basic Information - **Project Name**: web-2-server - **Description**: 六六顺网站后端,node.js express - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-04 - **Last Updated**: 2024-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 1 接口调用 ### 1. 基地址 `/api` ### 2. 注册接口 - **路径**: `/reguser` - **请求方式**: POST - **请求参数**: 放到请求体内 (`req.body`) ```json { "username": "", "password": "" } ``` - **响应**: res.send ```json { "status": 1, "message": "用户名被占用请更换用户名" } { "status": 0, "message": "注册成功!" } ``` ### 2. 登录接口 - **路径**: `/login` - **请求方式**: POST - **请求参数**: 放到请求体内 (`req.body`) ```json { "username": "", "password": "" } ``` - **响应**: res.send ```json { "status": 1, "message": "用户名被占用请更换用户名" } { "status": 0, "message": "注册成功!" } ```