mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-12 19:58:50 +00:00
add follow function and make small style changes
This commit is contained in:
parent
fdaf575367
commit
0576a76cb5
8 changed files with 57 additions and 19 deletions
|
@ -10,6 +10,7 @@ const profileRouter = express.Router();
|
|||
import { upload } from "../middleware/uploadSingle";
|
||||
import { updateBioSchema } from "../schemas/profileSchemas";
|
||||
import { validateData } from "../middleware/validationMiddleware";
|
||||
import { optionalAuthenticateToken } from "../middleware/optionalAuthenticateToken";
|
||||
/**
|
||||
* @swagger
|
||||
* /api/profile/uploadProfilePicture:
|
||||
|
@ -124,5 +125,5 @@ profileRouter.put(
|
|||
* 401:
|
||||
* description: Ungültige Anmeldedaten
|
||||
*/
|
||||
profileRouter.get("/:username", getProfile);
|
||||
profileRouter.get("/:username", optionalAuthenticateToken, getProfile);
|
||||
export default profileRouter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue