Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free API with Free Mehtod #1

Open
constantinedev opened this issue Jan 19, 2023 · 0 comments
Open

Free API with Free Mehtod #1

constantinedev opened this issue Jan 19, 2023 · 0 comments

Comments

@constantinedev
Copy link
Owner

Yes, flask are support different type of APIs.
The modify are PoC the different request and API design with the demo playground.

If you expect all the admin controls in PANEL page.
you can try to usr the request.args.get('value') to redirect bewteen the modules.
/panel?mod= xxx &pag= xxx

Other way is create new web path for the direct PANEL controls.
@app.route('/panel/blogger', methods=["GET", "POST"]}
in the run.py for new path.

I'm looking for make the modules to pluginization :) your idea.
The problem for the default Flask FW it use to templates and static folder
sure you can import os for modify to your dir path.

Make suer what are the request and response method between the page and api actiions.
This can play javascript and render_template with your scapial user needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant