mirror of
https://github.com/fumiama/CMoe-Counter.git
synced 2025-02-15 10:02:36 +01:00
Update README.md
This commit is contained in:
parent
2cca7d30dc
commit
376aacd714
@ -33,22 +33,22 @@ cmake ..
|
|||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
### Copy files to web root
|
### 4. Copy files to web root
|
||||||
1. Copy `favicon.ico`, `index.html`, `style.css` and the compiled binary `cmoe` into the same folder.
|
1. Copy `favicon.ico`, `index.html`, `style.css` and the compiled binary `cmoe` into the same folder.
|
||||||
2. Run `simple-http-server` by the command
|
2. Run `simple-http-server` by the command
|
||||||
```bash
|
```bash
|
||||||
simple-http-server -d port folder
|
simple-http-server -d port folder
|
||||||
```
|
```
|
||||||
### Enjoy it!
|
### 5. Enjoy it!
|
||||||
|
|
||||||
## API
|
## API
|
||||||
The API of CMoe is simpler than [Moe-counter](https://github.com/journey-ad/Moe-counter)
|
The API of CMoe is simpler than [Moe-counter](https://github.com/journey-ad/Moe-counter)
|
||||||
### Register
|
### 1. Register
|
||||||
`token` is defined in `cmoe.h`
|
`token` is defined in `cmoe.h`
|
||||||
```
|
```
|
||||||
http://yourdomain/cmoe?name=yourname®=token
|
http://yourdomain/cmoe?name=yourname®=token
|
||||||
```
|
```
|
||||||
### Refer
|
### 2. Refer
|
||||||
```
|
```
|
||||||
http://yourdomain/cmoe?name=yourname(&theme=mb/mbh/gb/gbh/r34)
|
http://yourdomain/cmoe?name=yourname(&theme=mb/mbh/gb/gbh/r34)
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user