Skip to content

Commit

Permalink
FIX :: API RequireAuthenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
Daybreak312 committed Aug 6, 2024
1 parent 1b7ecd7 commit c8d0fa5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.example.photohub.api.photocard

import com.example.photohub.Controller
import com.example.photohub.security.authentication.annotation.RequireAuthenticated
import com.example.photohub.usecase.photocard.dto.request.CreatePhotoCardRequest
import com.example.photohub.usecase.photocard.dto.request.CreatePhotoCardWithImageUrlRequest
import com.example.photohub.usecase.photocard.dto.response.PhotoCardInfoListResponse
Expand Down Expand Up @@ -65,6 +66,7 @@ class PhotoCardController(
req: CreatePhotoCardWithImageUrlRequest
) = createPhotoCardWithImageUrlUseCase(req)

@RequireAuthenticated
@ResponseStatus(HttpStatus.CREATED)
@PostMapping
fun createPhotoCard(
Expand Down

0 comments on commit c8d0fa5

Please sign in to comment.