Added question generating API

This commit is contained in:
viveksantayana committed 2021-11-28 18:17:50 +00:00
1 parent 88a4fc02d1
commit 0c3199515b
3 files changed
+73 -6

No files matched your search

+2 -1
View File
@@ -26,7 +26,8 @@ $('form[name=form-quiz-start]').submit(function(event) {
data: data,
dataType: 'json',
success: function(response) {
window.location.href = "/admin/login/";
var _id = response._id
window.location.href = `/api/questions/${_id}`;
},
error: function(response) {
if (typeof response.responseJSON.error === 'string' || response.responseJSON.error instanceof String) {