This is a simple Flask app that serves static files and includes a route for JSON responses. It is designed to demonstrate basic functionality and serve as a starting point for further development.
- Serves static files from the
/static
directory. - Includes a route to serve a static JSON file.
- Demonstrates a route that returns a JSON response.
- Python 3.x
- Flask
-
Clone the repository:
git clone https://github.com/lmxx1234567/chatgpt-plugin-starter-python.git
-
Navigate to the project directory:
cd chatgpt-plugin-starter-python
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the Plugin server:
python main.py
-
Access the following routes in your browser or through API requests:
/.well-known/ai-plugin.json
- Displays the content of theai-plugin.json
file located in thestatic
directory./static/*
- Matches any file name and displays its content from thestatic
directory./decorate
- Returns a JSON response with the message "Hello World!".
- To modify the content of the
ai-plugin.json
file, update the file located in thestatic
directory. - Add your own static files to the
static
directory and access them through the/static/*
route. - Expand the functionality by adding more routes or modifying the existing ones in the
main.py
file.
Contributions are welcome! If you find any issues or have suggestions for improvements, please create a new issue or submit a pull request.
This project is licensed under the MIT License.