Skip to content

Commit 5eb0ce0

Browse files
Add missing middleware
1 parent 6239056 commit 5eb0ce0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

database.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ CREATE TABLE IF NOT EXISTS "avatar_colors" (
2727
PRIMARY KEY("id")
2828
);
2929

30+
DROP TABLE IF EXISTS "user_avatars";
3031
CREATE TABLE IF NOT EXISTS "user_avatars" (
3132
"id" varchar(255) NOT NULL,
3233
"user" varchar(255) NOT NULL,

src/domains/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function createRouter() {
3131
router.post("/api/avatars/:avatarId/image", withAuth, withParams, withContent, handleCreateAvatarImageRequest);
3232

3333
router.get("/api/user/avatars", withAuth, handleUserAvatarsRequest);
34-
router.post("/api/user/avatars/create", withAuth, handleCreateUserAvatarsRequest);
34+
router.post("/api/user/avatars/create", withAuth, withContent, handleCreateUserAvatarsRequest);
3535

3636
return router;
3737
};

0 commit comments

Comments
 (0)