Skip to content

Commit

Permalink
update the api, added "dev" version for development
Browse files Browse the repository at this point in the history
  • Loading branch information
JaegerwaldDev committed Jan 2, 2024
1 parent 367abeb commit 40064d9
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 15 deletions.
15 changes: 15 additions & 0 deletions api/cmd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<p align="center"><img height="96px" width="224px" src="logo.png">
<h1 align="center">BastionCMD Server</h1>
<p align="center"><strong>The server for BastionCMD</strong></p>
This is the API for BastionCMD, containing all the information that is being pulled from the internet by the client. It contains files about the version, and also data for the actions. You can actually host this server yourself! Here's how you can do that:

## Setting up the Server, so you can run it yourself.

1. Paste the files from the server on any web server, so that you can view them in a browser.

2. Go to the client, and edit `server.py`. You need to change the `server_url` string to the URL of your server.

3. Everything should work correctly. Ask for help in our Discord server.

> [!IMPORTANT]
> These instructions are temporary, and will get changed sooner or later.
1 change: 0 additions & 1 deletion api/cmd/README.txt

This file was deleted.

34 changes: 21 additions & 13 deletions api/cmd/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
Oh hey. This is the directory used for hosting <a href="https://www.github.com/BastionMC/BastionCMD">BastionCMD</a> static files.
<br>
<br>
<strong>Files:</strong><br>
<a href="./version.json">version.json</a><br>
<a href="./update.json">update.json</a><br>
<a href="./action_data.json">action_data.json</a><br>
<br>
<br>
<br>
<br>
<br>
<sub>BastionCMD v1.0 • BastionCMD is licensed under the MIT License. • Copyright (c) BastionMC 2024 • PRERELEASE - THIS IS NOT THE FINISHED VERSION OF THE SERVER</sub>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BastionCMD API</title>
<style>img {position:relative; top: 18px;height:48px}</style>
</head>
<body>
Oh hey. This is the directory used for hosting <a href="https://www.github.com/BastionMC/BastionCMD">BastionCMD</a> data.
<br><br>
<strong>Files:</strong><br>
<ul>
<li><a href="./version.json">version.json</a></li>
<li><a href="./update.json">update.json</a></li>
<li><a href="./action_data.json">action_data.json</a></li>
</ul>
<br>
<a href="https://github.com/BastionMC/BastionCMD/tree/main/server"><img src="logo.png"></a>v1.0 • Licensed under the <a href="https://github.com/BastionMC/BastionCMD/blob/main/LICENSE"><img src="license.svg"></a> • © BastionMC 2024</sub>
</body>
</html>
2 changes: 2 additions & 0 deletions api/cmd/license.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/cmd/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion api/cmd/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"latest": "1.0",
"valid": [
"1.0"
"1.0",
"dev"
]
}

0 comments on commit 40064d9

Please sign in to comment.