A
A
Alexey Siginur2017-10-13 05:26:53
API
Alexey Siginur, 2017-10-13 05:26:53

How to upload content on the site?

I am new to website development. I have a server with an already working API. Everything is hosted at core.example.com. But at example.com I want to host a site to display/set my database.
How do I even upload information? There are a couple of options.
- Write everything again in php (database access, search, authorization, etc.).
- Use the already written api and access the database via localhost. For example localhost/getObjects
And if the latter, how is it done? Ajax?
The api itself is written in node.js and the database in MongoDB

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-10-13
@alvvi

- Write everything again in php (database access, search, authorization, etc.).

What for?
Yes
How does your API work? This is how it works in your normal mode, so you access it from the admin panel, only the authorization is stricter. Most often it is AJAX.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question