Added question generating API
This commit is contained in:
1 parent
96a8c8da6c
commit
47e69da60b
3 files changed
+73
-6
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user