1
0
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:
源文雨 2021-06-08 19:31:43 +08:00 committed by GitHub
parent 2cca7d30dc
commit 376aacd714

View File

@ -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&reg=token http://yourdomain/cmoe?name=yourname&reg=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)
``` ```