Skip to content

Commit bf791a6

Browse files
Update QuestionController.java
1 parent 5e94be6 commit bf791a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/example/quizapp/QuizApp/controller/QuestionController.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@RestController
1616
@RequestMapping("/question")
17+
@CrossOrigin
1718
public class QuestionController {
1819
@Autowired
1920
QuestionServices questionServices;
@@ -109,4 +110,4 @@ public ResponseEntity<Message> deleteQuestion(@PathVariable String id){
109110
questionServices.delete(Integer.parseInt(id));
110111
return new ResponseEntity<>(new Message(id,"Question deleted successfully"),HttpStatus.OK);
111112
}
112-
}
113+
}

0 commit comments

Comments
 (0)