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

Chore/domain #198

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/api/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ compatibility_date = "2024-08-02"
# defaultでドメインつけてくるやつ
workers_dev = false
# カスタムドメインを指定
route = { pattern = "api.peeace.net", custom_domain = true }
route = { pattern = "api.pe-ace.net", custom_domain = true }
[vars]
DOCS_URL = "https://docs.peeace.net/"
DOCS_URL = "https://docs.pe-ace.net/"

# [[kv_namespaces]]
# binding = "MY_KV_NAMESPACE"
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/docs/code-reference/golang.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
apiKey = "YOUR_API_KEY"
apiUrl = "https://api.peeace.net/v1/guardians/text"
apiUrl = "https://api.pe-ace.net/v1/guardians/text"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/docs/code-reference/node-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//// YOUR_API_KEYを取得したものに変更してください
const apiKey= 'YOUR_API_KEY';

const apiUrl = "https://api.peeace.net/v1/guardians/text";
const apiUrl = "https://api.pe-ace.net/v1/guardians/text";
const requestBody = {
text: "最低な文章"
};
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/docs/features/guardian.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ default値は`0.5`です。
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/docs/features/sunshine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const SunshineApiName = () => {
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/sunshines/text' \
--location 'https://api.pe-ace.net/v1/sunshines/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/docs/how-to-use/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ApiName = () => {

## API キーの発行

1. <a href="https://peeace.net" target="_blank">
1. <a href="https://pe-ace.net" target="_blank">
ユーザーポータル
</a>
にログインします。 「平和ネットAPIを使う」をクリックしてください。
Expand Down Expand Up @@ -55,7 +55,7 @@ export const ApiName = () => {
<code>
```
curl -s -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $API_KEY" \
--data '{
Expand Down Expand Up @@ -89,7 +89,7 @@ export const ApiName = () => {
text = "最低な文章"
} | ConvertTo-Json

Invoke-RestMethod -Method Post -Uri "https://api.peeace.net/v1/guardians/text" -Headers $headers -Body $body
Invoke-RestMethod -Method Post -Uri "https://api.pe-ace.net/v1/guardians/text" -Headers $headers -Body $body
```
</code>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/docs/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SunshineApiName = () => {

### ユーザーポータル

<a href="https://peeace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。
<a href="https://pe-ace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。

- APIキーの発行
- 使用回数の確認
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/docs/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: クイックスタート
## APIを試してみる
APIキーを発行せずに試してみましょう。

1. [管理ページ](https://peeace.net)にアクセスし、`平和ネットAPIを使う`をクリックしてください。<br/><br/>
1. [管理ページ](https://pe-ace.net)にアクセスし、`平和ネットAPIを使う`をクリックしてください。<br/><br/>
![](/img/top.png)

2. `ログインしないで使ってみる`から簡単にAPIを試すことができます! <br/><br/>
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const config: Config = {
label: 'API Reference',
},
{
href: 'https://peeace.net/',
href: 'https://pe-ace.net/',
label: 'Website',
position: 'right',
},
Expand Down Expand Up @@ -147,7 +147,7 @@ const config: Config = {
items: [
{
label: 'Website',
href: 'https://peeace.net/',
href: 'https://pe-ace.net/',
},
{
label: 'GitHub',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
apiKey = "YOUR_API_KEY"
apiUrl = "https://api.peeace.net/v1/guardians/text"
apiUrl = "https://api.pe-ace.net/v1/guardians/text"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//// YOUR_API_KEYを取得したものに変更してください
const apiKey= 'YOUR_API_KEY';

const apiUrl = "https://api.peeace.net/v1/guardians/text";
const apiUrl = "https://api.pe-ace.net/v1/guardians/text";
const requestBody = {
text: "最低な文章"
};
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/versioned_docs/version-1.0.0/how-to-use/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Guardians APIの基本的な使い方を説明しています。

## API キーの発行
1. <a href="https://peeace.net" target="_blank">ユーザーポータル</a>にログインします。
1. <a href="https://pe-ace.net" target="_blank">ユーザーポータル</a>にログインします。
「平和ネットAPIを使う」をクリックしてください。

:::info
Expand Down Expand Up @@ -41,7 +41,7 @@ Guardians APIの基本的な使い方を説明しています。
<code>
```
curl -s -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $API_KEY" \
--data '{
Expand Down Expand Up @@ -74,7 +74,7 @@ Guardians APIの基本的な使い方を説明しています。
text = "最低な文章"
} | ConvertTo-Json

Invoke-RestMethod -Method Post -Uri "https://api.peeace.net/v1/guardians/text" -Headers $headers -Body $body
Invoke-RestMethod -Method Post -Uri "https://api.pe-ace.net/v1/guardians/text" -Headers $headers -Body $body
```
</code>
</pre>
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/versioned_docs/version-1.0.0/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Peace Net APIはより安全で平和なインターネット空間の実現を

## 機能

### <a href="https://peeace.net" target="_blank">ユーザーポータル</a>
### <a href="https://pe-ace.net" target="_blank">ユーザーポータル</a>
ユーザーポータルでは以下の操作を行うことができます。
- APIキーの発行
- 使用回数の確認
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
apiKey = "YOUR_API_KEY"
apiUrl = "https://api.peeace.net/v1/guardians/text"
apiUrl = "https://api.pe-ace.net/v1/guardians/text"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//// YOUR_API_KEYを取得したものに変更してください
const apiKey= 'YOUR_API_KEY';

const apiUrl = "https://api.peeace.net/v1/guardians/text";
const apiUrl = "https://api.pe-ace.net/v1/guardians/text";
const requestBody = {
text: "最低な文章"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ default値は`0.5`です。
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/versioned_docs/version-1.1.0/how-to-use/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ApiName = () => {

## API キーの発行

1. <a href="https://peeace.net" target="_blank">
1. <a href="https://pe-ace.net" target="_blank">
ユーザーポータル
</a>
にログインします。 「平和ネットAPIを使う」をクリックしてください。
Expand Down Expand Up @@ -55,7 +55,7 @@ export const ApiName = () => {
<code>
```
curl -s -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $API_KEY" \
--data '{
Expand Down Expand Up @@ -89,7 +89,7 @@ export const ApiName = () => {
text = "最低な文章"
} | ConvertTo-Json

Invoke-RestMethod -Method Post -Uri "https://api.peeace.net/v1/guardians/text" -Headers $headers -Body $body
Invoke-RestMethod -Method Post -Uri "https://api.pe-ace.net/v1/guardians/text" -Headers $headers -Body $body
```
</code>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/versioned_docs/version-1.1.0/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SunshineApiName = () => {

### ユーザーポータル

<a href="https://peeace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。
<a href="https://pe-ace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。

- APIキーの発行
- 使用回数の確認
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
apiKey = "YOUR_API_KEY"
apiUrl = "https://api.peeace.net/v1/guardians/text"
apiUrl = "https://api.pe-ace.net/v1/guardians/text"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//// YOUR_API_KEYを取得したものに変更してください
const apiKey= 'YOUR_API_KEY';

const apiUrl = "https://api.peeace.net/v1/guardians/text";
const apiUrl = "https://api.pe-ace.net/v1/guardians/text";
const requestBody = {
text: "最低な文章"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ default値は`0.5`です。
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const SunshineApiName = () => {
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/sunshines/text' \
--location 'https://api.pe-ace.net/v1/sunshines/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/versioned_docs/version-1.2.0/how-to-use/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ApiName = () => {

## API キーの発行

1. <a href="https://peeace.net" target="_blank">
1. <a href="https://pe-ace.net" target="_blank">
ユーザーポータル
</a>
にログインします。 「平和ネットAPIを使う」をクリックしてください。
Expand Down Expand Up @@ -55,7 +55,7 @@ export const ApiName = () => {
<code>
```
curl -s -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $API_KEY" \
--data '{
Expand Down Expand Up @@ -89,7 +89,7 @@ export const ApiName = () => {
text = "最低な文章"
} | ConvertTo-Json

Invoke-RestMethod -Method Post -Uri "https://api.peeace.net/v1/guardians/text" -Headers $headers -Body $body
Invoke-RestMethod -Method Post -Uri "https://api.pe-ace.net/v1/guardians/text" -Headers $headers -Body $body
```
</code>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/versioned_docs/version-1.2.0/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SunshineApiName = () => {

### ユーザーポータル

<a href="https://peeace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。
<a href="https://pe-ace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。

- APIキーの発行
- 使用回数の確認
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
apiKey = "YOUR_API_KEY"
apiUrl = "https://api.peeace.net/v1/guardians/text"
apiUrl = "https://api.pe-ace.net/v1/guardians/text"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//// YOUR_API_KEYを取得したものに変更してください
const apiKey= 'YOUR_API_KEY';

const apiUrl = "https://api.peeace.net/v1/guardians/text";
const apiUrl = "https://api.pe-ace.net/v1/guardians/text";
const requestBody = {
text: "最低な文章"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ default値は`0.5`です。
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const SunshineApiName = () => {
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/sunshines/text' \
--location 'https://api.pe-ace.net/v1/sunshines/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/versioned_docs/version-1.2.1/how-to-use/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ApiName = () => {

## API キーの発行

1. <a href="https://peeace.net" target="_blank">
1. <a href="https://pe-ace.net" target="_blank">
ユーザーポータル
</a>
にログインします。 「平和ネットAPIを使う」をクリックしてください。
Expand Down Expand Up @@ -55,7 +55,7 @@ export const ApiName = () => {
<code>
```
curl -s -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $API_KEY" \
--data '{
Expand Down Expand Up @@ -89,7 +89,7 @@ export const ApiName = () => {
text = "最低な文章"
} | ConvertTo-Json

Invoke-RestMethod -Method Post -Uri "https://api.peeace.net/v1/guardians/text" -Headers $headers -Body $body
Invoke-RestMethod -Method Post -Uri "https://api.pe-ace.net/v1/guardians/text" -Headers $headers -Body $body
```
</code>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/versioned_docs/version-1.2.1/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SunshineApiName = () => {

### ユーザーポータル

<a href="https://peeace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。
<a href="https://pe-ace.net" target="_blank">ユーザーポータル</a>では以下の操作を行うことができます。

- APIキーの発行
- 使用回数の確認
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
apiKey = "YOUR_API_KEY"
apiUrl = "https://api.peeace.net/v1/guardians/text"
apiUrl = "https://api.pe-ace.net/v1/guardians/text"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//// YOUR_API_KEYを取得したものに変更してください
const apiKey= 'YOUR_API_KEY';

const apiUrl = "https://api.peeace.net/v1/guardians/text";
const apiUrl = "https://api.pe-ace.net/v1/guardians/text";
const requestBody = {
text: "最低な文章"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ default値は`0.5`です。
<code>
```
curl -X POST \
--location 'https://api.peeace.net/v1/guardians/text' \
--location 'https://api.pe-ace.net/v1/guardians/text' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <API_KEY>" \
-d '{
Expand Down
Loading
Loading