only use put
This commit is contained in:
parent
e1eade2452
commit
7d7d1f98de
1 changed files with 2 additions and 3 deletions
|
|
@ -1866,7 +1866,7 @@ module.exports = async (
|
|||
/**
|
||||
* @type {RequestHandler<FollowsRouteParams>}
|
||||
*/
|
||||
const apiGunFollowsPostOrPut = async (req, res) => {
|
||||
const apiGunFollowsPut = async (req, res) => {
|
||||
try {
|
||||
const { publicKey } = req.params;
|
||||
if (!publicKey) {
|
||||
|
|
@ -1908,8 +1908,7 @@ module.exports = async (
|
|||
}
|
||||
|
||||
ap.get('/api/gun/follows/:publicKey', apiGunFollowsGet)
|
||||
ap.post(`/api/gun/follows/:publicKey`, apiGunFollowsPostOrPut)
|
||||
ap.put(`/api/gun/follows/:publicKey`,apiGunFollowsPostOrPut)
|
||||
ap.put(`/api/gun/follows/:publicKey`,apiGunFollowsPut)
|
||||
ap.delete(`/api/gun/follows/:publicKey`, apiGunFollowsDelete)
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue