Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LaMartin-Webomagic
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Deep Dey
LaMartin-Webomagic
Commits
33f014c2
Commit
33f014c2
authored
Nov 17, 2025
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update base url
parent
b121299f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lamartinDashboard/js/constant.js
lamartinDashboard/js/constant.js
+1
-1
lamartinDashboard/js/login.js
lamartinDashboard/js/login.js
+3
-2
No files found.
lamartinDashboard/js/constant.js
View file @
33f014c2
const
BASE_URL
=
'
https://adm.lamartiniere.co/webomagic-user/v1
'
;
//
const BASE_URL = 'https://adm.lamartiniere.co/webomagic-user/v1';
const
BASE_URL_LAMARTIN
=
'
https://adm.lamartiniere.co/webomagic-lamartin
'
;
const
BASE_URL_LAMARTIN
=
'
https://adm.lamartiniere.co/webomagic-lamartin
'
;
\ No newline at end of file
lamartinDashboard/js/login.js
View file @
33f014c2
...
@@ -6,7 +6,7 @@ $(document).ready(function () {
...
@@ -6,7 +6,7 @@ $(document).ready(function () {
var
password
=
$
(
'
#password
'
).
val
();
var
password
=
$
(
'
#password
'
).
val
();
$
.
ajax
({
$
.
ajax
({
url
:
BASE_URL
+
'
/user/login
'
,
url
:
BASE_URL
_LAMARTIN
+
'
/user/login
'
,
type
:
'
POST
'
,
type
:
'
POST
'
,
contentType
:
'
application/json
'
,
contentType
:
'
application/json
'
,
dataType
:
'
json
'
,
dataType
:
'
json
'
,
...
@@ -15,8 +15,9 @@ $(document).ready(function () {
...
@@ -15,8 +15,9 @@ $(document).ready(function () {
password
:
password
,
password
:
password
,
}),
}),
success
:
function
(
response
)
{
success
:
function
(
response
)
{
debugger
$
(
'
#errorMessage
'
).
hide
();
$
(
'
#errorMessage
'
).
hide
();
sessionStorage
.
setItem
(
'
loginData
'
,
JSON
.
stringify
(
response
.
data
));
sessionStorage
.
setItem
(
'
loginData
'
,
JSON
.
stringify
(
{
apiKey
:
response
.
data
}
));
window
.
location
.
href
=
'
dashboard.html
'
;
window
.
location
.
href
=
'
dashboard.html
'
;
},
},
error
:
function
(
error
)
{
error
:
function
(
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment