Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f96eab2c4 | ||
|
|
682ef1f285 | ||
|
|
eb94fb8e54 |
@@ -36,7 +36,7 @@ CLI arguments go after the `--` in the cargo command.
|
|||||||
To run deploy the API with Docker, just run:
|
To run deploy the API with Docker, just run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker run registry.nyeki.dev/nyeki/api:latest -p 8000:80 \
|
$ docker run registry.nyeki.dev/nyeki/api:v1.1.4 -p 8000:80 \
|
||||||
$ -e DISCORD_TOKEN="..." \
|
$ -e DISCORD_TOKEN="..." \
|
||||||
$ -e GITHUB_TOKEN="..."
|
$ -e GITHUB_TOKEN="..."
|
||||||
```
|
```
|
||||||
|
|||||||
+4
-4
@@ -9,8 +9,8 @@ pub mod v1;
|
|||||||
|
|
||||||
pub fn router() -> Router<Arc<State>> {
|
pub fn router() -> Router<Arc<State>> {
|
||||||
Router::new()
|
Router::new()
|
||||||
.route("/", get(docs))
|
.route("/v1/healthcheck", get(healthcheck))
|
||||||
.route("/healthcheck", get(healthcheck))
|
.route("/v1/docs", get(docs))
|
||||||
.nest("/v1", v1::router())
|
.nest("/v1", v1::router())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ async fn docs() -> &'static str {
|
|||||||
|
|
||||||
The current endpoints are:
|
The current endpoints are:
|
||||||
|
|
||||||
GET /healthcheck
|
GET /v1/healthcheck
|
||||||
Returns OK when the API is running.
|
Returns OK when the API is running.
|
||||||
|
|
||||||
GET /v1/profile
|
GET /v1/profile
|
||||||
@@ -121,7 +121,7 @@ async fn docs() -> &'static str {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This API is open source and available at https://git.nyeki.dev/nyeki/api to self-host.
|
This API is open source and available at https://git.moan.dev/nyeki/nyeki-api to self-host.
|
||||||
Liked it? Found it useful? A donation would be appreciated! You can do so at
|
Liked it? Found it useful? A donation would be appreciated! You can do so at
|
||||||
https://ko-fi.com/nyeki.
|
https://ko-fi.com/nyeki.
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user