mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
try to fix subscribe
This commit is contained in:
parent
f5fced858a
commit
09ef9b0b1b
2 changed files with 7 additions and 6 deletions
|
@ -19,6 +19,9 @@ SimpleRouter::get($basePath, function() {
|
||||||
SimpleRouter::get($basePath."info", function() {
|
SimpleRouter::get($basePath."info", function() {
|
||||||
require_once "view/info.php"; exit;
|
require_once "view/info.php"; exit;
|
||||||
});
|
});
|
||||||
|
SimpleRouter::post($basePath."subscribes.json", function() {
|
||||||
|
require_once "objects/subscribes.json.php";
|
||||||
|
});
|
||||||
SimpleRouter::get($basePath."siteConfigurations", function() {
|
SimpleRouter::get($basePath."siteConfigurations", function() {
|
||||||
require_once "view/configurations.php"; exit;
|
require_once "view/configurations.php"; exit;
|
||||||
});
|
});
|
||||||
|
@ -209,9 +212,7 @@ SimpleRouter::post($basePath."addNewVideo", function() {
|
||||||
SimpleRouter::post($basePath."createUser", function() {
|
SimpleRouter::post($basePath."createUser", function() {
|
||||||
require_once "objects/userCreate.json.php";
|
require_once "objects/userCreate.json.php";
|
||||||
});
|
});
|
||||||
SimpleRouter::get($basePath."subscribes.json", function() {
|
|
||||||
require_once "objects/subscribes.json.php";
|
|
||||||
});
|
|
||||||
SimpleRouter::get($basePath."subscribe.json", function() {
|
SimpleRouter::get($basePath."subscribe.json", function() {
|
||||||
require_once "objects/subscribe.json.php";
|
require_once "objects/subscribe.json.php";
|
||||||
});
|
});
|
||||||
|
|
|
@ -207,7 +207,7 @@ function validateEmail(email) {
|
||||||
|
|
||||||
function subscribe(email, user_id) {
|
function subscribe(email, user_id) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: webSiteRootURL + 'objects/subscribe.json.php',
|
url: webSiteRootURL + 'subscribe.json',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {
|
data: {
|
||||||
'email': email,
|
'email': email,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue